From: Sebastian Dröge Date: Thu, 27 Apr 2023 13:33:25 +0000 (+0300) Subject: Revert "splitmuxsink: Avoid assertion when WAITING_GOP_COLLECT on reference context" X-Git-Tag: 1.22.7~324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e2eeab1c68acbbd048c1de3475866a9b59cc42d;p=platform%2Fupstream%2Fgstreamer.git Revert "splitmuxsink: Avoid assertion when WAITING_GOP_COLLECT on reference context" This reverts commit f29c19be5821d26a6b7682d0c69ff31d0815e072. If this is called for the reference context then we would run into an infinite loop, which is not really better than an assertion. By fixing up DTS to never be ahead of the PTS in the previous commit this situation should be impossible to hit now. Part-of: --- diff --git a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c index 0d66185..012ca3e 100644 --- a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c +++ b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c @@ -3184,13 +3184,11 @@ handle_mq_input (GstPad * pad, GstPadProbeInfo * info, MqStreamCtx * ctx) } break; case SPLITMUX_INPUT_STATE_WAITING_GOP_COLLECT:{ - /* We're collecting a GOP, this is normally only called for non-reference + /* We're collecting a GOP, this is only ever called for non-reference * contexts as the reference context would be waiting inside * check_completed_gop() */ - if (G_UNLIKELY (ctx->is_reference)) { - check_completed_gop (splitmux, ctx); - break; - } + + g_assert (!ctx->is_reference); /* If we overran the target timestamp, it might be time to process * the GOP, otherwise bail out for more data. */