Commit f6d2fed8 authored by Luca Barbato's avatar Luca Barbato

avconv: Make sure that inputless filtergraphs are configured

Unbreak `avconv -filter_complex testsrc`.

Regression introduced in a3a0230a
parent 602abe77
......@@ -766,6 +766,15 @@ static int poll_filters(void)
for (i = 0; i < nb_output_streams; i++) {
int64_t pts = output_streams[i]->sync_opts;
if (output_streams[i]->filter && !output_streams[i]->filter->graph->graph &&
!output_streams[i]->filter->graph->nb_inputs) {
ret = configure_filtergraph(output_streams[i]->filter->graph);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Error reinitializing filters!\n");
return ret;
}
}
if (!output_streams[i]->filter || output_streams[i]->finished ||
!output_streams[i]->filter->graph->graph)
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment