decodebin2: use NO_RESYNC flag

to avoid the state change function from messing with the state of the elements
that we add.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=690420
This commit is contained in:
Wim Taymans 2012-12-21 16:38:36 +01:00
parent ca456ec6f9
commit 0feecef275

View file

@ -990,6 +990,8 @@ gst_decode_bin_update_factories_list (GstDecodeBin * dbin)
static void
gst_decode_bin_init (GstDecodeBin * decode_bin)
{
GST_OBJECT_FLAG_SET (decode_bin, GST_BIN_FLAG_NO_RESYNC);
/* first filter out the interesting element factories */
decode_bin->factories_lock = g_mutex_new ();