From 2d4491e19562d6545f8a6aa87c4f1737010b9483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 12 Oct 2021 19:01:37 +0300 Subject: [PATCH] splitmuxsink: Don't assert on the input side if no GOP is available when shutting down Part-of: --- subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c index 05bf741a86..080510e7c1 100644 --- a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c +++ b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c @@ -3187,7 +3187,8 @@ handle_mq_input (GstPad * pad, GstPadProbeInfo * info, MqStreamCtx * ctx) /* Update total input byte counter for overflow detect unless we're after * EOS now */ - if (splitmux->input_state != SPLITMUX_INPUT_STATE_FINISHING_UP) { + if (splitmux->input_state != SPLITMUX_INPUT_STATE_FINISHING_UP + && splitmux->input_state != SPLITMUX_INPUT_STATE_STOPPED) { InputGop *gop = g_queue_peek_tail (&splitmux->pending_input_gops); /* We must have a GOP at this point */