From 512f96906e0d4385447c9c9c4455b46b4e8b19c8 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 8 Jun 2012 17:28:28 +0100 Subject: [PATCH] playbin2: remove uridecodebin from bin when it fails to switch to PAUSED This avoids that bin being leftover and being found when reusing playbin2, and fixes restarting on a new URI after failing to activate with a previous URI. https://bugzilla.gnome.org/show_bug.cgi?id=673888 --- gst/playback/gstplaybin2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 74b53f7a8d..857ce2c772 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -3971,6 +3971,8 @@ uridecodebin_failure: } group->video_sink = NULL; + gst_bin_remove (GST_BIN_CAST (playbin), uridecodebin); + GST_DEBUG_OBJECT (playbin, "failed state change of uridecodebin"); return FALSE; }