mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:41:41 +00:00
winegstreamer: Set MF_SA_D3D11_AWARE attribute for h264 transform.
This commit is contained in:
parent
62068a4dff
commit
2cfcce8350
|
@ -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},
|
||||
|
|
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue