diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index a872a69090..361d6e2535 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -14372,8 +14372,6 @@ qtdemux_expose_streams (GstQTDemux * qtdemux) gst_qtdemux_guess_bitrate (qtdemux); - gst_element_no_more_pads (GST_ELEMENT_CAST (qtdemux)); - /* If we have still old_streams, it's no more used stream */ for (i = 0; i < qtdemux->old_streams->len; i++) { QtDemuxStream *stream = QTDEMUX_NTH_OLD_STREAM (qtdemux, i); @@ -14391,6 +14389,8 @@ qtdemux_expose_streams (GstQTDemux * qtdemux) g_ptr_array_set_size (qtdemux->old_streams, 0); + gst_element_no_more_pads (GST_ELEMENT_CAST (qtdemux)); + /* check if we should post a redirect in case there is a single trak * and it is a redirecting trak */ if (QTDEMUX_N_STREAMS (qtdemux) == 1 &&