parsebin: Post STREAM_COLLECTION on EVENT_STREAM_COLLECTION

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
This commit is contained in:
Thibault Saunier 2018-04-18 16:06:07 -03:00
parent 2f3ff84f40
commit 89d0e9cc92

View 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:{