From 0fc02f35c7ff97ba895061670743abca5c6fa4b4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 4 May 2016 11:15:20 -0400 Subject: [PATCH] splitmuxsink: Fix deadlock case when source reaches EOS https://bugzilla.gnome.org/show_bug.cgi?id=765072 --- gst/multifile/gstsplitmuxsink.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index f3b4df1..4e8da80 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -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; -- 2.7.4