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

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

Unified · Split

libavfilter/avfilter.c+10−2
@@ -163,8 +163,12 @@ int avfilter_config_links(AVFilterContext *filter) · 162 unmodified lines
163 "callbacks on all outputs\n");163 "callbacks on all outputs\n");
164 return AVERROR(EINVAL);164 return AVERROR(EINVAL);
165 }165 }
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);
167 return ret;170 return ret;
171 }
168 172
169 if (link->time_base.num == 0 && link->time_base.den == 0)173 if (link->time_base.num == 0 && link->time_base.den == 0)
170 link->time_base = link->src && link->src->input_count ?174 link->time_base = link->src && link->src->input_count ?
@@ -189,8 +193,12 @@ int avfilter_config_links(AVFilterContext *filter) · 18 unmodified lines
189 }193 }
190 194
191 if ((config_link = link->dstpad->config_props))195 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);
193 return ret;200 return ret;
201 }
194 202
195 link->init_state = AVLINK_INIT;203 link->init_state = AVLINK_INIT;
196 }204 }

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