From c432a73e80ea80d9fd7e70bd7ecb516dc529988e Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 28 Nov 2023 19:17:20 +0900 Subject: [PATCH] msdk: Fix build error after d3d11 API change Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3158 Part-of: --- subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c index 36779c9fa4..8f5af22d1c 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c +++ b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c @@ -1707,10 +1707,8 @@ gst_msdk_create_d3d11_pool (GstMsdkDec * thiz, GstVideoInfo * info, pool = gst_d3d11_buffer_pool_new (device); config = gst_buffer_pool_get_config (pool); params = gst_d3d11_allocation_params_new (device, info, - GST_D3D11_ALLOCATION_FLAG_DEFAULT, 0, 0); - - params->desc[0].BindFlags |= - (D3D11_BIND_DECODER | D3D11_BIND_SHADER_RESOURCE); + GST_D3D11_ALLOCATION_FLAG_DEFAULT, + D3D11_BIND_DECODER | D3D11_BIND_SHADER_RESOURCE, 0); gst_buffer_pool_config_set_d3d11_allocation_params (config, params); gst_d3d11_allocation_params_free (params);