diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-03-15 14:09:45 +0100 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-03-15 14:44:20 +0100 |
commit | a9fb801e45ad2368fabae5f483ced9ad484f4fbd (patch) | |
tree | 48dad39aa853447b3eca4a342364bd5bec341449 | |
parent | 7e66eb26ddc7784f1928232bee6dc1f146b87035 (diff) | |
download | gst-omx-a9fb801e45ad2368fabae5f483ced9ad484f4fbd.tar.gz |
omxvideodec: Make sure that the first frame we pass to OpenMAX is a sync frame
-rw-r--r-- | omx/gstomxvideodec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 0c0e287..9515d99 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -1469,6 +1469,11 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder, return GST_FLOW_UNEXPECTED; } + 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; |