From: Gwenole Beauchesne Date: Wed, 18 Jun 2014 16:53:51 +0000 (+0200) Subject: decoder: h264: fix caps to report interlace-mode accordingly. X-Git-Tag: 0.5.9~75 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fgstreamer-vaapi.git;a=commitdiff_plain;h=95c781c34fad757eb820429604fbd4e3d921960a decoder: h264: fix caps to report interlace-mode accordingly. The `vaapipostproc' element could never determine if the H.264 stream was interlaced, and thus always assumed it to be progressive. Fix the H.264 decoder to report interlace-mode accordingly, thus allowing the vaapipostproc element to automatically enable deinterlacing. --- diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index 82b8d15..1e709b5 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -1333,10 +1333,7 @@ ensure_context(GstVaapiDecoderH264 *decoder, GstH264SPS *sps) } priv->progressive_sequence = sps->frame_mbs_only_flag; -#if 0 - /* XXX: we only output complete frames for now */ gst_vaapi_decoder_set_interlaced(base_decoder, !priv->progressive_sequence); -#endif gst_vaapi_decoder_set_pixel_aspect_ratio( base_decoder,