mfmediaengine: Explicitly store output video format.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-05-17 12:26:50 +03:00 committed by Alexandre Julliard
parent b20c478bfd
commit d6eb5947e1

View file

@ -117,6 +117,7 @@ struct media_engine
TOPOID node_id;
BYTE *buffer;
UINT buffer_size;
DXGI_FORMAT output_format;
} video_frame;
CRITICAL_SECTION cs;
};
@ -747,6 +748,8 @@ static HRESULT media_engine_create_video_renderer(struct media_engine *engine, I
IMFActivate_Release(activate);
engine->video_frame.output_format = output_format;
return hr;
}