mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 23:33:07 +00:00
Make link_filter() propagate the generated error code.
Originally committed as revision 24419 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f219eee592
commit
99ac59ca69
@ -34,11 +34,12 @@ static int link_filter(AVFilterContext *src, int srcpad,
|
|||||||
AVFilterContext *dst, int dstpad,
|
AVFilterContext *dst, int dstpad,
|
||||||
AVClass *log_ctx)
|
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,
|
av_log(log_ctx, AV_LOG_ERROR,
|
||||||
"cannot create the link %s:%d -> %s:%d\n",
|
"cannot create the link %s:%d -> %s:%d\n",
|
||||||
src->filter->name, srcpad, dst->filter->name, dstpad);
|
src->filter->name, srcpad, dst->filter->name, dstpad);
|
||||||
return -1;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user