splitmuxsink: Don't leak old muxer/sink in async mode

Make sure to clear the reference taken earlier in the function
when switching muxer/sink asynchronously so they don't leak
This commit is contained in:
Jan Schmidt 2018-08-15 02:28:20 +10:00
parent f8076e208b
commit 5da08a21c6

View file

@ -1610,6 +1610,8 @@ start_next_fragment (GstSplitMuxSink * splitmux, MqStreamCtx * ctx)
GINT_TO_POINTER (2));
}
}
gst_object_unref (muxer);
gst_object_unref (sink);
muxer = new_muxer;
sink = new_sink;
gst_object_ref (muxer);