vaapipostproc: fix bug when user disabled deinterlacing.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 16 Oct 2013 09:23:03 +0000 (11:23 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 15 Nov 2013 18:36:50 +0000 (19:36 +0100)
Fix pipeline error / hang when the user disabled deinterlacing through
the deinterlace-mode=disabled property setting.

gst/vaapi/gstvaapipostproc.c

index 6a8eb38..c725075 100755 (executable)
@@ -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)) {