[FFmpeg-soc] [soc]: r2131 - libavfilter/graphparser.c
vitor
subversion at mplayerhq.hu
Fri Apr 18 19:57:42 CEST 2008
Author: vitor
Date: Fri Apr 18 19:57:42 2008
New Revision: 2131
Log:
Simplify
Modified:
libavfilter/graphparser.c
Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c (original)
+++ libavfilter/graphparser.c Fri Apr 18 19:57:42 2008
@@ -225,22 +225,20 @@ static int handle_link(char *name, AVFil
if(p->type == LinkTypeIn && type == LinkTypeOut) {
if(link_filter(filter, pad, p->filter, p->pad_idx, log_ctx) < 0)
- goto fail;
+ return -1;
} else if(p->type == LinkTypeOut && type == LinkTypeIn) {
if(link_filter(p->filter, p->pad_idx, filter, pad, log_ctx) < 0)
- goto fail;
+ return -1;
} else {
av_log(log_ctx, AV_LOG_ERROR,
"Two links named '%s' are either both input or both output\n",
name);
- goto fail;
+ return -1;
}
p->filter = NULL;
return 0;
- fail:
- return -1;
}
More information about the FFmpeg-soc
mailing list