mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
aiffparse: send start stream event
https://bugzilla.gnome.org/show_bug.cgi?id=705674
This commit is contained in:
parent
86edc51333
commit
5a066fd6dd
1 changed files with 10 additions and 0 deletions
|
@ -837,6 +837,8 @@ gst_aiff_parse_stream_headers (GstAiffParse * aiff)
|
|||
switch (tag) {
|
||||
case GST_MAKE_FOURCC ('C', 'O', 'M', 'M'):{
|
||||
GstCaps *caps;
|
||||
GstEvent *event;
|
||||
gchar *stream_id;
|
||||
|
||||
if (aiff->streaming) {
|
||||
if (!gst_aiff_parse_peek_chunk (aiff, &tag, &size))
|
||||
|
@ -861,6 +863,14 @@ gst_aiff_parse_stream_headers (GstAiffParse * aiff)
|
|||
if (aiff->rate == 0)
|
||||
goto no_rate;
|
||||
|
||||
stream_id =
|
||||
gst_pad_create_stream_id (aiff->srcpad, GST_ELEMENT_CAST (aiff),
|
||||
NULL);
|
||||
event = gst_event_new_stream_start (stream_id);
|
||||
gst_event_set_group_id (event, gst_util_group_id_next ());
|
||||
gst_pad_push_event (aiff->srcpad, event);
|
||||
g_free (stream_id);
|
||||
|
||||
GST_DEBUG_OBJECT (aiff, "creating the caps");
|
||||
|
||||
caps = gst_aiff_parse_create_caps (aiff);
|
||||
|
|
Loading…
Reference in a new issue