mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
slitmuxsrc: Properly stop the loop if not part reader is present
Previously this would end up in a refcounting loop of hell. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/578>
This commit is contained in:
parent
6a38961561
commit
cfb9a5d53a
1 changed files with 4 additions and 0 deletions
|
@ -751,7 +751,11 @@ gst_splitmux_pad_loop (GstPad * pad)
|
|||
|
||||
GST_OBJECT_LOCK (splitpad);
|
||||
if (splitpad->part_pad == NULL) {
|
||||
GST_DEBUG_OBJECT (splitmux,
|
||||
"Pausing task because part reader is not present");
|
||||
GST_OBJECT_UNLOCK (splitpad);
|
||||
gst_pad_pause_task (pad);
|
||||
gst_object_unref (splitmux);
|
||||
return;
|
||||
}
|
||||
part_pad = gst_object_ref (splitpad->part_pad);
|
||||
|
|
Loading…
Reference in a new issue