From: Gwenole Beauchesne Date: Wed, 16 Oct 2013 09:23:03 +0000 (+0200) Subject: vaapipostproc: fix bug when user disabled deinterlacing. X-Git-Tag: 1.19.3~503^2~2416 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d86caa9d1353fd6aa84d52dcb1129751b722b13;p=platform%2Fupstream%2Fgstreamer.git vaapipostproc: fix bug when user disabled deinterlacing. Fix pipeline error / hang when the user disabled deinterlacing through the deinterlace-mode=disabled property setting. --- diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index 6a8eb38..c725075 100755 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -550,12 +550,12 @@ gst_vaapipostproc_transform_caps_impl(GstBaseTransform *trans, /* Set double framerate in interlaced mode */ if (!gst_util_fraction_multiply(fps_n, fps_d, 2, 1, &fps_n, &fps_d)) return NULL; - - /* Signal the other pad that we generate only progressive frames */ - GST_VIDEO_INFO_INTERLACE_MODE(&vi) = - GST_VIDEO_INTERLACE_MODE_PROGRESSIVE; } format = GST_VIDEO_FORMAT_ENCODED; + + /* Signal the other pad that we generate only progressive frames */ + GST_VIDEO_INFO_INTERLACE_MODE(&vi) = + GST_VIDEO_INTERLACE_MODE_PROGRESSIVE; } else { if (is_deinterlace_enabled(postproc, &vi)) {