From: Wim Taymans Date: Sat, 30 Mar 2013 18:13:47 +0000 (+0100) Subject: videodecoder: forward stream-start immediately X-Git-Tag: 1.19.3~511^2~5492 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b8d0532325e5fcdb8eb7188220d7bd8e0938461;p=platform%2Fupstream%2Fgstreamer.git videodecoder: forward stream-start immediately --- diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index a9be47e..3017074 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -967,6 +967,20 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder, priv = decoder->priv; 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: { GstCaps *caps;