AVOptions: make av_set_options_string() forward options to child objects

This commit is contained in:
Anton Khirnov 2013-03-12 18:23:27 +01:00
parent 85a46ad685
commit cf53704c55

View File

@ -573,7 +573,7 @@ static int parse_key_value_pair(void *ctx, const char **buf,
av_log(ctx, AV_LOG_DEBUG, "Setting value '%s' for key '%s'\n", val, key);
ret = av_opt_set(ctx, key, val, 0);
ret = av_opt_set(ctx, key, val, AV_OPT_SEARCH_CHILDREN);
if (ret == AVERROR_OPTION_NOT_FOUND)
av_log(ctx, AV_LOG_ERROR, "Key '%s' not found.\n", key);