History

Make link_filter() propagate the generated error code.

Originally committed as revision 24419 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 99ac59c1 parent f219eee1 file · +3 −2Browse files

Unified · Split

libavfilter/graphparser.c+3−2
@@ -34,11 +34,12 @@ static int link_filter(AVFilterContext *src, int srcpad, · 33 unmodified lines
34 AVFilterContext *dst, int dstpad,34 AVFilterContext *dst, int dstpad,
35 AVClass *log_ctx)35 AVClass *log_ctx)
36{36{
37 if (avfilter_link(src, srcpad, dst, dstpad)) {37 int ret;
38 if ((ret = avfilter_link(src, srcpad, dst, dstpad))) {
38 av_log(log_ctx, AV_LOG_ERROR,39 av_log(log_ctx, AV_LOG_ERROR,
39 "cannot create the link %s:%d -> %s:%d\n",40 "cannot create the link %s:%d -> %s:%d\n",
40 src->filter->name, srcpad, dst->filter->name, dstpad);41 src->filter->name, srcpad, dst->filter->name, dstpad);
41 return -1;42 return ret;
42 }43 }
43 44
44 return 0;45 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t