msdkdec: remove unneeded code
authorHaihao Xiang <haihao.xiang@intel.com>
Tue, 23 Jul 2019 05:28:17 +0000 (13:28 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Wed, 24 Jul 2019 00:17:29 +0000 (08:17 +0800)
Before calling gst_msdkdec_create_buffer_pool, the alignment parameters
have been adjusted.

sys/msdk/gstmsdkdec.c

index e2f4852..20694bf 100644 (file)
@@ -1120,12 +1120,6 @@ gst_msdkdec_create_buffer_pool (GstMsdkDec * thiz, GstVideoInfo * info,
   if (!pool)
     goto error_no_pool;
 
-  if (G_UNLIKELY (!IS_ALIGNED (GST_VIDEO_INFO_WIDTH (info), 16)
-          || !IS_ALIGNED (GST_VIDEO_INFO_HEIGHT (info), 32))) {
-    gst_msdk_set_video_alignment (info, &align);
-    gst_video_info_align (info, &align);
-  }
-
   caps = gst_video_info_to_caps (info);
 
   /* allocators should use the same width/height/stride/height_alignment of