splitmuxsink: Don't assert on the input side if no GOP is available when shutting...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 12 Oct 2021 16:01:37 +0000 (19:01 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 12 Oct 2021 19:34:16 +0000 (19:34 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1119>

subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c

index 05bf741..080510e 100644 (file)
@@ -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 */