mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
msdk: Fix build error after d3d11 API change
Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3158 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5723>
This commit is contained in:
parent
b9dda9732c
commit
c432a73e80
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue