From ef8142ef90481598672c6fa6622ea1792f3739e2 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Tue, 1 Sep 2020 14:56:55 +0200 Subject: [PATCH] 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: --- gst/mpegtsmux/gstbasetsmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/mpegtsmux/gstbasetsmux.c b/gst/mpegtsmux/gstbasetsmux.c index 0972ba2..d2a73dd 100644 --- a/gst/mpegtsmux/gstbasetsmux.c +++ b/gst/mpegtsmux/gstbasetsmux.c @@ -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; } -- 2.7.4