From 2fe74efc04ccdc1f11de671686b613071bd507df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 7 Sep 2012 16:11:26 +0200 Subject: [PATCH] Set SYNC_FRAME flag on buffers if required --- sys/androidmedia/gstamcvideodec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index 68ea358e0b..c92741a5e7 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -1165,6 +1165,9 @@ gst_amc_video_dec_handle_frame (GstVideoDecoder * decoder, memcpy (buf->data, GST_BUFFER_DATA (frame->input_buffer) + offset, buffer_info.size); + if (GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame)) + buffer_info.flags |= BUFFER_FLAG_SYNC_FRAME; + /* Interpolate timestamps if we're passing the buffer * in multiple chunks */ if (offset != 0 && duration != GST_CLOCK_TIME_NONE) {