urisourcebin: Only remove components in PAUSED->READY
authorEdward Hervey <edward@centricular.com>
Tue, 1 Nov 2022 08:53:36 +0000 (09:53 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 16 Nov 2022 14:01:46 +0000 (14:01 +0000)
With the refactoring, we are guaranteed the components are only created in PAUSED

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

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

index b1a543e5235f8d511d33c6c0122589c94c9698c4..402a6815e429fa50a158194fa8ee4258bc6f6acb 100644 (file)
@@ -2735,10 +2735,6 @@ gst_uri_source_bin_change_state (GstElement * element,
       urisrc->buffering_status = NULL;
       urisrc->last_buffering_pct = -1;
       break;
-    case GST_STATE_CHANGE_READY_TO_NULL:
-      GST_DEBUG ("ready to null");
-      remove_source (urisrc);
-      break;
     default:
       break;
   }