urisourcebin: Only remove components in PAUSED->READY

With the refactoring, we are guaranteed the components are only created in PAUSED

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2784>
This commit is contained in:
Edward Hervey 2022-11-01 09:53:36 +01:00 committed by GStreamer Marge Bot
parent 5b41ea2fe8
commit a5f0085cda

View file

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