urisourcebin: Don't remove probe if not present

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7609>
This commit is contained in:
Edward Hervey 2024-10-16 17:20:46 +02:00 committed by GStreamer Marge Bot
parent b2c0f490f0
commit 189cbe7fdd

View file

@ -1525,8 +1525,10 @@ demuxer_pad_removed_cb (GstElement * element, GstPad * pad,
slot = output_slot_for_originating_pad (info, pad);
g_assert (slot);
gst_pad_remove_probe (pad, slot->demuxer_event_probe_id);
slot->demuxer_event_probe_id = 0;
if (slot->demuxer_event_probe_id) {
gst_pad_remove_probe (pad, slot->demuxer_event_probe_id);
slot->demuxer_event_probe_id = 0;
}
if (slot->pending_pad) {
/* Switch over to pending pad */