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

Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all

Unified · Split

libavfilter/graphparser.c+3−2
@@ -34,11 +34,12 @@ static int link_filter(AVFilterContext *src, int srcpad, · 33 unmodified lines
3434 AVFilterContext *dst, int dstpad,
3535 AVClass *log_ctx)
3636 {
37− if (avfilter_link(src, srcpad, dst, dstpad)) {
37+ int ret;
38+ if ((ret = avfilter_link(src, srcpad, dst, dstpad))) {
3839 av_log(log_ctx, AV_LOG_ERROR,
3940 "cannot create the link %s:%d -> %s:%d\n",
4041 src->filter->name, srcpad, dst->filter->name, dstpad);
41− return -1;
42+ return ret;
4243 }
4344
4445 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