urisourcebin: Remove duplicate call
authorEdward Hervey <edward@centricular.com>
Mon, 31 Oct 2022 05:13:31 +0000 (06:13 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 16 Nov 2022 14:01:46 +0000 (14:01 +0000)
We ensure sources are removed in PAUSED->READY->NULL. No need to call it when
creating the source.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2784>

subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c

index 067e5f5..af6ebbe 100644 (file)
@@ -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;