From: Sebastian Dröge Date: Wed, 25 Apr 2012 11:46:00 +0000 (+0200) Subject: video: Only use the interlacing buffer flags if the caps specify interlaced video X-Git-Tag: 1.19.3~511^2~6537 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71900c434212e3c40b92f4e2cc8798393d678518;p=platform%2Fupstream%2Fgstreamer.git video: Only use the interlacing buffer flags if the caps specify interlaced video --- diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c index 63a690f..32f097b 100644 --- a/gst-libs/gst/video/video.c +++ b/gst-libs/gst/video/video.c @@ -1097,12 +1097,14 @@ gst_video_frame_map_id (GstVideoFrame * frame, GstVideoInfo * info, frame->id = id; frame->flags = 0; - if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_TFF)) - frame->flags |= GST_VIDEO_FRAME_FLAG_TFF; - if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_RFF)) - frame->flags |= GST_VIDEO_FRAME_FLAG_RFF; - if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_ONEFIELD)) - frame->flags |= GST_VIDEO_FRAME_FLAG_ONEFIELD; + if (GST_VIDEO_INFO_IS_INTERLACED (info)) { + if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_TFF)) + frame->flags |= GST_VIDEO_FRAME_FLAG_TFF; + if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_RFF)) + frame->flags |= GST_VIDEO_FRAME_FLAG_RFF; + if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_ONEFIELD)) + frame->flags |= GST_VIDEO_FRAME_FLAG_ONEFIELD; + } gst_buffer_map (buffer, &frame->map[0], flags);