mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
videodecoder: forward stream-start immediately
This commit is contained in:
parent
03f658dda2
commit
3b8d053232
1 changed files with 14 additions and 0 deletions
|
@ -967,6 +967,20 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
|
||||||
priv = decoder->priv;
|
priv = decoder->priv;
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
|
case GST_EVENT_STREAM_START:
|
||||||
|
{
|
||||||
|
GstFlowReturn flow_ret = GST_FLOW_OK;
|
||||||
|
|
||||||
|
flow_ret = gst_video_decoder_drain_out (decoder, FALSE);
|
||||||
|
ret = (flow_ret == GST_FLOW_OK);
|
||||||
|
|
||||||
|
/* Forward STREAM_START immediately. Everything is drained after
|
||||||
|
* the STREAM_START event and we can forward this event immediately
|
||||||
|
* now without having buffers out of order.
|
||||||
|
*/
|
||||||
|
forward_immediate = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case GST_EVENT_CAPS:
|
case GST_EVENT_CAPS:
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
Loading…
Reference in a new issue