winegstreamer: Set MF_SA_D3D11_AWARE attribute for h264 transform.

This commit is contained in:
Paul Gofman 2023-01-03 18:45:54 -06:00 committed by Alexandre Julliard
parent 62068a4dff
commit 2cfcce8350
2 changed files with 3 additions and 1 deletions

View file

@ -3255,7 +3255,7 @@ static void test_h264_decoder(void)
{
ATTR_UINT32(MF_LOW_LATENCY, 0),
ATTR_UINT32(MF_SA_D3D_AWARE, 1, .todo = TRUE),
ATTR_UINT32(MF_SA_D3D11_AWARE, 1, .todo = TRUE),
ATTR_UINT32(MF_SA_D3D11_AWARE, 1),
ATTR_UINT32(MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER, 0, .todo = TRUE),
/* more H264 decoder specific attributes from CODECAPI */
{0},

View file

@ -725,6 +725,8 @@ HRESULT h264_decoder_create(REFIID riid, void **ret)
goto failed;
if (FAILED(hr = IMFAttributes_SetUINT32(decoder->attributes, &MF_LOW_LATENCY, 0)))
goto failed;
if (FAILED(hr = IMFAttributes_SetUINT32(decoder->attributes, &MF_SA_D3D11_AWARE, TRUE)))
goto failed;
if (FAILED(hr = MFCreateAttributes(&decoder->output_attributes, 0)))
goto failed;
if (FAILED(hr = wg_sample_queue_create(&decoder->wg_sample_queue)))