mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
wavparse: Push stream-start event in pull mode before anything else
This commit is contained in:
parent
e5fad95306
commit
db1c2a28a6
1 changed files with 6 additions and 0 deletions
|
@ -2365,6 +2365,7 @@ gst_wavparse_loop (GstPad * pad)
|
|||
{
|
||||
GstFlowReturn ret;
|
||||
GstWavParse *wav = GST_WAVPARSE (GST_PAD_PARENT (pad));
|
||||
gchar *stream_id;
|
||||
|
||||
GST_LOG_OBJECT (wav, "process data");
|
||||
|
||||
|
@ -2374,6 +2375,11 @@ gst_wavparse_loop (GstPad * pad)
|
|||
if ((ret = gst_wavparse_stream_init (wav)) != GST_FLOW_OK)
|
||||
goto pause;
|
||||
|
||||
stream_id =
|
||||
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));
|
||||
g_free (stream_id);
|
||||
|
||||
wav->state = GST_WAVPARSE_HEADER;
|
||||
/* fall-through */
|
||||
|
||||
|
|
Loading…
Reference in a new issue