playback: decodebin3 and parsebin are streams-aware
authorEdward Hervey <edward@centricular.com>
Tue, 11 Oct 2016 10:36:00 +0000 (12:36 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 12 Oct 2016 13:05:55 +0000 (15:05 +0200)
Elements within can add/remove pads at anytime without complying
with the fallback system.

https://bugzilla.gnome.org/show_bug.cgi?id=772741

gst/playback/gstdecodebin3.c
gst/playback/gstparsebin.c

index 6e45acf..2f321ea 100644 (file)
@@ -602,6 +602,8 @@ gst_decodebin3_init (GstDecodebin3 * dbin)
   g_mutex_init (&dbin->input_lock);
 
   dbin->caps = gst_static_caps_get (&default_raw_caps);
+
+  GST_OBJECT_FLAG_SET (dbin, GST_BIN_FLAG_STREAMS_AWARE);
 }
 
 static void
index cbb8552..33f9cb5 100644 (file)
@@ -944,6 +944,8 @@ gst_parse_bin_init (GstParseBin * parse_bin)
 
   parse_bin->expose_allstreams = DEFAULT_EXPOSE_ALL_STREAMS;
   parse_bin->connection_speed = DEFAULT_CONNECTION_SPEED;
+
+  GST_OBJECT_FLAG_SET (parse_bin, GST_BIN_FLAG_STREAMS_AWARE);
 }
 
 static void