playbin3: Remove un-needed URI NULL check

This will mimic the playbin2 behaviour, which sets the "next" entry to be
NULL.

The biggest impact this has is that when going back to READY the current play
entry will be discarded (instead of being kept around for when you go back to
PAUSED/PLAYING).

Fixes #3371

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6324>
This commit is contained in:
Edward Hervey 2024-03-11 15:58:53 +01:00 committed by GStreamer Marge Bot
parent 05ef1bbc06
commit 0f1dfc2db0

View file

@ -1200,11 +1200,6 @@ invalid:
static void
gst_play_bin3_set_uri (GstPlayBin3 * playbin, const gchar * uri)
{
if (uri == NULL) {
g_warning ("cannot set NULL uri");
return;
}
if (!gst_playbin_uri_is_valid (playbin, uri)) {
if (g_str_has_prefix (uri, "file:")) {
GST_WARNING_OBJECT (playbin, "not entirely correct file URI '%s' - make "