[FFmpeg-cvslog] r24419 - trunk/libavfilter/graphparser.c

stefano subversion
Thu Jul 22 11:55:57 CEST 2010


Author: stefano
Date: Thu Jul 22 11:55:57 2010
New Revision: 24419

Log:
Make link_filter() propagate the generated error code.

Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	Thu Jul 22 11:49:15 2010	(r24418)
+++ trunk/libavfilter/graphparser.c	Thu Jul 22 11:55:57 2010	(r24419)
@@ -34,11 +34,12 @@ static int link_filter(AVFilterContext *
                        AVFilterContext *dst, int dstpad,
                        AVClass *log_ctx)
 {
-    if (avfilter_link(src, srcpad, dst, dstpad)) {
+    int ret;
+    if ((ret = avfilter_link(src, srcpad, dst, dstpad))) {
         av_log(log_ctx, AV_LOG_ERROR,
                "cannot create the link %s:%d -> %s:%d\n",
                src->filter->name, srcpad, dst->filter->name, dstpad);
-        return -1;
+        return ret;
     }
 
     return 0;



More information about the ffmpeg-cvslog mailing list