From 0feecef2754ef208372eb39332b4f6fa2067d3d5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 21 Dec 2012 16:38:36 +0100 Subject: [PATCH] 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 --- gst/playback/gstdecodebin2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 69c308fc..815de73 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -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 (); -- 2.7.4