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
This commit is contained in:
Vincent Penquerc'h 2012-06-08 17:28:28 +01:00
parent 9d6967fe9a
commit 512f96906e

View file

@ -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;
}