From 189cbe7fdda64ab5e0bae7fb68557b982a691577 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 16 Oct 2024 17:20:46 +0200 Subject: [PATCH] urisourcebin: Don't remove probe if not present Part-of: --- subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c index 86994ecb60..5841bc31f6 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c @@ -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 */