diff options
author | Matthieu Bouron <matthieu.bouron@collabora.com> | 2013-08-07 17:28:29 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-08-09 23:40:08 +0100 |
commit | 5a066fd6dd33defab065cf450925e6b3ec74bd80 (patch) | |
tree | 51310eea95abf500699cd2dee70bc183f899761f /gst/aiff | |
parent | 86edc51333048916098b0497efb5bf6a4c189c6f (diff) | |
download | gstreamer-plugins-bad-5a066fd6dd33defab065cf450925e6b3ec74bd80.tar.gz |
aiffparse: send start stream event
https://bugzilla.gnome.org/show_bug.cgi?id=705674
Diffstat (limited to 'gst/aiff')
-rw-r--r-- | gst/aiff/aiffparse.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c index a4ce3f7fa..469bcec9c 100644 --- a/gst/aiff/aiffparse.c +++ b/gst/aiff/aiffparse.c @@ -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); |