From a5f0085cda437ded9a4c9c7eebed9786b1a87ed7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 1 Nov 2022 09:53:36 +0100 Subject: [PATCH] urisourcebin: Only remove components in PAUSED->READY With the refactoring, we are guaranteed the components are only created in PAUSED Part-of: --- subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c index b1a543e523..402a6815e4 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c @@ -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; }