parsebin: Post STREAM_COLLECTION on EVENT_STREAM_COLLECTION
authorThibault Saunier <tsaunier@igalia.com>
Wed, 18 Apr 2018 19:06:07 +0000 (16:06 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 19 Apr 2018 11:40:35 +0000 (08:40 -0300)
Otherwise decodebin won't get notified about STREAM_COLLECTION comming
from the sources and thus will never get informored about it. Without
being informed about the stream collection decodebin won't be able to
select any streams. It ends up not creating any output for the streams
defined from outside parserbin.

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

gst/playback/gstparsebin.c

index 4c5bfc1..f9662eb 100644 (file)
@@ -4046,6 +4046,9 @@ gst_parse_pad_event (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
       GstStreamCollection *collection = NULL;
       gst_event_parse_stream_collection (event, &collection);
       gst_parse_pad_update_stream_collection (parsepad, collection);
+      gst_element_post_message (GST_ELEMENT (parsepad->parsebin),
+          gst_message_new_stream_collection (GST_OBJECT (parsepad->parsebin),
+              collection));
       break;
     }
     case GST_EVENT_EOS:{