decodebin2: use NO_RESYNC flag
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 21 Dec 2012 15:38:36 +0000 (16:38 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 21 Dec 2012 15:38:36 +0000 (16:38 +0100)
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

gst/playback/gstdecodebin2.c

index 69c308f..815de73 100644 (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 ();