mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
urisourcebin: Don't remove probe if not present
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7609>
This commit is contained in:
parent
b2c0f490f0
commit
189cbe7fdd
1 changed files with 4 additions and 2 deletions
|
@ -1525,8 +1525,10 @@ demuxer_pad_removed_cb (GstElement * element, GstPad * pad,
|
||||||
slot = output_slot_for_originating_pad (info, pad);
|
slot = output_slot_for_originating_pad (info, pad);
|
||||||
g_assert (slot);
|
g_assert (slot);
|
||||||
|
|
||||||
|
if (slot->demuxer_event_probe_id) {
|
||||||
gst_pad_remove_probe (pad, slot->demuxer_event_probe_id);
|
gst_pad_remove_probe (pad, slot->demuxer_event_probe_id);
|
||||||
slot->demuxer_event_probe_id = 0;
|
slot->demuxer_event_probe_id = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (slot->pending_pad) {
|
if (slot->pending_pad) {
|
||||||
/* Switch over to pending pad */
|
/* Switch over to pending pad */
|
||||||
|
|
Loading…
Reference in a new issue