splitmuxsink: Fix deadlock case when source reaches EOS

https://bugzilla.gnome.org/show_bug.cgi?id=765072
This commit is contained in:
Xavier Claessens 2016-05-04 11:15:20 -04:00 committed by Jan Schmidt
parent 36597cf201
commit 0fc02f35c7

View file

@ -942,6 +942,11 @@ check_completed_gop (GstSplitMuxSink * splitmux, MqStreamCtx * ctx)
}
}
/* If upstream reached EOS we are not expecting more data, no need to wait
* here. */
if (ctx->in_eos)
return;
/* Some pad is not yet ready, or GOP is being pushed
* either way, sleep and wait to get woken */
current_max_in_running_time = splitmux->max_in_running_time;