From f42ca96ad91b4f867b80b3ff59d3219459d1fbed Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 31 Oct 2022 06:13:31 +0100 Subject: [PATCH] urisourcebin: Remove duplicate call We ensure sources are removed in PAUSED->READY->NULL. No need to call it when creating the source. Part-of: --- subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c index 067e5f5..af6ebbe 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c @@ -2070,9 +2070,6 @@ setup_source (GstURISourceBin * urisrc) GST_DEBUG_OBJECT (urisrc, "setup source"); - /* delete old src */ - remove_source (urisrc); - /* create and configure an element that can handle the uri */ if (!(urisrc->source = gen_source_element (urisrc))) goto no_source; -- 2.7.4