mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 22:17:32 +00:00
mfmediaengine: Handle shutdown state in GetNativeVideoSize().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ef8bf642c7
commit
86a72e055e
|
@ -1338,7 +1338,9 @@ static HRESULT WINAPI media_engine_GetNativeVideoSize(IMFMediaEngine *iface, DWO
|
|||
|
||||
EnterCriticalSection(&engine->cs);
|
||||
|
||||
if (!engine->video_frame.size.cx && !engine->video_frame.size.cy)
|
||||
if (engine->flags & FLAGS_ENGINE_SHUT_DOWN)
|
||||
hr = MF_E_SHUTDOWN;
|
||||
else if (!engine->video_frame.size.cx && !engine->video_frame.size.cy)
|
||||
hr = E_FAIL;
|
||||
else
|
||||
{
|
||||
|
|
|
@ -379,7 +379,6 @@ todo_wine
|
|||
ok(!state, "Unexpected state.\n");
|
||||
|
||||
hr = IMFMediaEngine_GetNativeVideoSize(media_engine, &cx, &cy);
|
||||
todo_wine
|
||||
ok(hr == MF_E_SHUTDOWN, "Unexpected hr %#x.\n", hr);
|
||||
|
||||
hr = IMFMediaEngine_GetVideoAspectRatio(media_engine, &cx, &cy);
|
||||
|
|
Loading…
Reference in a new issue