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 6e45acf112b462c6e61399d1fbaeebe2dca9656c..2f321ea8aafe81e5137323b1a9f49effd1fce43f 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 cbb85521ee98e068e3575bc65a6c6dbfaac86c16..33f9cb5dd326f47c0e6f304aeba6a6abd5ac9df9 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