[FFmpeg-soc] [soc]: r1472 - libavfilter/avfiltergraph.c

vitor subversion at mplayerhq.hu
Thu Nov 29 20:35:17 CET 2007


Author: vitor
Date: Thu Nov 29 20:35:17 2007
New Revision: 1472

Log:
Handle failure properly

Modified:
   libavfilter/avfiltergraph.c

Modified: libavfilter/avfiltergraph.c
==============================================================================
--- libavfilter/avfiltergraph.c	(original)
+++ libavfilter/avfiltergraph.c	Thu Nov 29 20:35:17 2007
@@ -451,7 +451,12 @@ static AVFilterContext *create_filter_wi
             avfilter_destroy(ret);
             goto fail;
         }
-    } else av_log(NULL, AV_LOG_ERROR, "error creating filter!\n");
+    } else {
+        av_log(NULL, AV_LOG_ERROR,
+               "error creating filter \"%s\" with args \"%s\"\n",
+               name, args ? args : "(none)");
+        return NULL;
+    }
 
     av_free(filter);
 



More information about the FFmpeg-soc mailing list