From: Edward Hervey Date: Tue, 11 Oct 2016 10:36:00 +0000 (+0200) Subject: playback: decodebin3 and parsebin are streams-aware X-Git-Tag: 1.19.3~511^2~2638 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acc3a9d242b61dc992a8b8e2acb81f9b7654a414;p=platform%2Fupstream%2Fgstreamer.git playback: decodebin3 and parsebin are streams-aware Elements within can add/remove pads at anytime without complying with the fallback system. https://bugzilla.gnome.org/show_bug.cgi?id=772741 --- diff --git a/gst/playback/gstdecodebin3.c b/gst/playback/gstdecodebin3.c index 6e45acf112..2f321ea8aa 100644 --- a/gst/playback/gstdecodebin3.c +++ b/gst/playback/gstdecodebin3.c @@ -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 diff --git a/gst/playback/gstparsebin.c b/gst/playback/gstparsebin.c index cbb85521ee..33f9cb5dd3 100644 --- a/gst/playback/gstparsebin.c +++ b/gst/playback/gstparsebin.c @@ -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