[FFmpeg-soc] [soc]: r2093 - libavfilter/graphparser.c

vitor subversion at mplayerhq.hu
Sun Apr 6 13:09:29 CEST 2008


Author: vitor
Date: Sun Apr  6 13:09:29 2008
New Revision: 2093

Log:
Better error messages

Modified:
   libavfilter/graphparser.c

Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c	(original)
+++ libavfilter/graphparser.c	Sun Apr  6 13:09:29 2008
@@ -50,8 +50,14 @@ static int create_filter(AVFilterGraph *
     char tmp[20];
 
     snprintf(tmp, 20, "%d", index);
-    if(!(filterdef = avfilter_get_by_name(name)) ||
-       !(filt = avfilter_open(filterdef, tmp))) {
+
+    if(!(filterdef = avfilter_get_by_name(name))) {
+        av_log(&log_ctx, AV_LOG_ERROR,
+               "no such filter: '%s'\n", name);
+        return -1;
+    }
+
+    if(!(filt = avfilter_open(filterdef, tmp))) {
         av_log(&log_ctx, AV_LOG_ERROR,
                "error creating filter '%s'\n", name);
         return -1;
@@ -62,7 +68,7 @@ static int create_filter(AVFilterGraph *
 
     if(avfilter_init_filter(filt, args, NULL)) {
         av_log(&log_ctx, AV_LOG_ERROR,
-               "error initializing filter '%s'\n", name);
+               "error initializing filter '%s' with args '%s'\n", name, args);
         return -1;
     }
 



More information about the FFmpeg-soc mailing list