diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-12-08 22:01:25 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-12-08 22:01:25 +0000 |
commit | 62096b99b13744a43ac54453f077997ac1265203 (patch) | |
tree | cbd7a444645a4fc0c387151b24422a3c53876100 /libavfilter | |
parent | 7d132c544b2447ef5a6b04ca6f21e245d6a48986 (diff) | |
download | ffmpeg-62096b99b13744a43ac54453f077997ac1265203.tar.gz |
Make parse_key_value_pair() print an error message if a key is not
found in the context.
Originally committed as revision 20779 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/parseutils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/parseutils.c b/libavfilter/parseutils.c index 0b67d3ddac..79fa8b7470 100644 --- a/libavfilter/parseutils.c +++ b/libavfilter/parseutils.c @@ -292,6 +292,8 @@ 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_set_string3(ctx, key, val, 1, NULL); + if (ret == AVERROR(ENOENT)) + av_log(ctx, AV_LOG_ERROR, "Key '%s' not found.\n", key); av_free(key); av_free(val); |