[FFmpeg-cvslog] r12708 - trunk/libavfilter/avfiltergraph.c

vitor subversion
Fri Apr 4 22:07:34 CEST 2008


Author: vitor
Date: Fri Apr  4 22:07:34 2008
New Revision: 12708

Log:
Handle failure properly
Commited in SoC by Vitor Sessak on 2007-11-29 19:35:17


Modified:
   trunk/libavfilter/avfiltergraph.c

Modified: trunk/libavfilter/avfiltergraph.c
==============================================================================
--- trunk/libavfilter/avfiltergraph.c	(original)
+++ trunk/libavfilter/avfiltergraph.c	Fri Apr  4 22:07:34 2008
@@ -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-cvslog mailing list