mpegtsmux: Keep mux usable after stop

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>
This commit is contained in:
Jan Alexander Steffens (heftig) 2020-09-01 14:56:55 +02:00 committed by GStreamer Merge Bot
parent cc3057e4ea
commit ef8142ef90

View 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;
}