mpegtsmux: Keep mux usable after stop
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 1 Sep 2020 12:56:55 +0000 (14:56 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Sep 2020 14:01:56 +0000 (14:01 +0000)
Otherwise you cannot request new pads until after it is started again.

gst_base_ts_mux_reset with FALSE is still called in the dispose
implementation, so the muxer still gets deallocated when we actually
clean up.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1552>

gst/mpegtsmux/gstbasetsmux.c

index 0972ba2..d2a73dd 100644 (file)
@@ -1714,7 +1714,7 @@ gst_base_ts_mux_start (GstAggregator * agg)
 static gboolean
 gst_base_ts_mux_stop (GstAggregator * agg)
 {
-  gst_base_ts_mux_reset (GST_BASE_TS_MUX (agg), FALSE);
+  gst_base_ts_mux_reset (GST_BASE_TS_MUX (agg), TRUE);
 
   return TRUE;
 }