omxvideodec: Make sure that the first frame we pass to OpenMAX is a sync frame

This commit is contained in:
Sebastian Dröge 2013-03-15 14:09:45 +01:00
parent e1f94660f7
commit 2b580837f5

View file

@ -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;