[FFmpeg-cvslog] r20779 - trunk/libavfilter/parseutils.c

stefano subversion
Tue Dec 8 23:01:25 CET 2009


Author: stefano
Date: Tue Dec  8 23:01:25 2009
New Revision: 20779

Log:
Make parse_key_value_pair() print an error message if a key is not
found in the context.

Modified:
   trunk/libavfilter/parseutils.c

Modified: trunk/libavfilter/parseutils.c
==============================================================================
--- trunk/libavfilter/parseutils.c	Tue Dec  8 23:00:07 2009	(r20778)
+++ trunk/libavfilter/parseutils.c	Tue Dec  8 23:01:25 2009	(r20779)
@@ -292,6 +292,8 @@ static int parse_key_value_pair(void *ct
     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);



More information about the ffmpeg-cvslog mailing list