mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
f8076e208b
commit
5da08a21c6
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue