mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
wavparse: Add support for group-id in the stream-start event
This commit is contained in:
parent
169b490664
commit
0c2ff91a5c
1 changed files with 4 additions and 1 deletions
|
@ -2365,6 +2365,7 @@ gst_wavparse_loop (GstPad * pad)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
GstWavParse *wav = GST_WAVPARSE (GST_PAD_PARENT (pad));
|
GstWavParse *wav = GST_WAVPARSE (GST_PAD_PARENT (pad));
|
||||||
|
GstEvent *event;
|
||||||
gchar *stream_id;
|
gchar *stream_id;
|
||||||
|
|
||||||
GST_LOG_OBJECT (wav, "process data");
|
GST_LOG_OBJECT (wav, "process data");
|
||||||
|
@ -2377,7 +2378,9 @@ gst_wavparse_loop (GstPad * pad)
|
||||||
|
|
||||||
stream_id =
|
stream_id =
|
||||||
gst_pad_create_stream_id (wav->srcpad, GST_ELEMENT_CAST (wav), NULL);
|
gst_pad_create_stream_id (wav->srcpad, GST_ELEMENT_CAST (wav), NULL);
|
||||||
gst_pad_push_event (wav->srcpad, gst_event_new_stream_start (stream_id));
|
event = gst_event_new_stream_start (stream_id);
|
||||||
|
gst_event_set_group_id (event, gst_util_group_id_next ());
|
||||||
|
gst_pad_push_event (wav->srcpad, event);
|
||||||
g_free (stream_id);
|
g_free (stream_id);
|
||||||
|
|
||||||
wav->state = GST_WAVPARSE_HEADER;
|
wav->state = GST_WAVPARSE_HEADER;
|
||||||
|
|
Loading…
Reference in a new issue