From 2909d0229dfe144a1994247a498a4231b3772c77 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 17 Apr 2013 10:14:55 +0200 Subject: [PATCH] decoder: fix GstVideoCodecFrame flags for interlaced contents. Fix support for interlaced contents with GStreamer 0.10. In particular, propagate GstVaapiSurfaceProxy frame flags to GstVideoCodecFrame flags correctly. This is a regression from commit 87e5717. --- gst-libs/gst/vaapi/gstvaapidecoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder.c b/gst-libs/gst/vaapi/gstvaapidecoder.c index 2a3dd76af3..5c548d8e21 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder.c @@ -762,6 +762,7 @@ gst_vaapi_decoder_get_frame(GstVaapiDecoder *decoder, out_flags |= GST_VIDEO_CODEC_FRAME_FLAG_RFF; if (flags & GST_VAAPI_SURFACE_PROXY_FLAG_ONEFIELD) out_flags |= GST_VIDEO_CODEC_FRAME_FLAG_ONEFIELD; + GST_VIDEO_CODEC_FRAME_FLAG_SET(out_frame, out_flags); } #endif -- 2.34.1