From 2b580837f580b68f08de8cb554d232d71e008b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 15 Mar 2013 14:09:45 +0100 Subject: omxvideodec: Make sure that the first frame we pass to OpenMAX is a sync frame --- omx/gstomxvideodec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 6e8d139..be7e1f8 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -2200,6 +2200,11 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder, return GST_FLOW_EOS; } + if (!self->started && !GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame)) { + gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame); + return GST_FLOW_OK; + } + timestamp = frame->pts; duration = frame->duration; -- cgit v1.2.1