History

avfilter: Log an error if avfilter fails to configure a link.

Alex Converse committed 14 years ago

Commit 65a80ee1 parent 47b812e1 file · +10 −2Browse files

Unified · Split

libavfilter/avfilter.c+10−2
@@ -163,8 +163,12 @@ int avfilter_config_links(AVFilterContext *filter) · 162 unmodified lines
163163 "callbacks on all outputs\n");
164164 return AVERROR(EINVAL);
165165 }
166− } else if ((ret = config_link(link)) < 0)
166+ } else if ((ret = config_link(link)) < 0) {
167+ av_log(link->src, AV_LOG_ERROR,
168+ "Failed to configure output pad on %s\n",
169+ link->src->name);
167170 return ret;
171+ }
168172
169173 if (link->time_base.num == 0 && link->time_base.den == 0)
170174 link->time_base = link->src && link->src->input_count ?
@@ -189,8 +193,12 @@ int avfilter_config_links(AVFilterContext *filter) · 18 unmodified lines
189193 }
190194
191195 if ((config_link = link->dstpad->config_props))
192− if ((ret = config_link(link)) < 0)
196+ if ((ret = config_link(link)) < 0) {
197+ av_log(link->src, AV_LOG_ERROR,
198+ "Failed to configure input pad on %s\n",
199+ link->dst->name);
193200 return ret;
201+ }
194202
195203 link->init_state = AVLINK_INIT;
196204 }

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