Commit 86a72e05 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfmediaengine: Handle shutdown state in GetNativeVideoSize().

parent ef8bf642
...@@ -1338,7 +1338,9 @@ static HRESULT WINAPI media_engine_GetNativeVideoSize(IMFMediaEngine *iface, DWO ...@@ -1338,7 +1338,9 @@ static HRESULT WINAPI media_engine_GetNativeVideoSize(IMFMediaEngine *iface, DWO
EnterCriticalSection(&engine->cs); 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; hr = E_FAIL;
else else
{ {
......
...@@ -379,7 +379,6 @@ todo_wine ...@@ -379,7 +379,6 @@ todo_wine
ok(!state, "Unexpected state.\n"); ok(!state, "Unexpected state.\n");
hr = IMFMediaEngine_GetNativeVideoSize(media_engine, &cx, &cy); hr = IMFMediaEngine_GetNativeVideoSize(media_engine, &cx, &cy);
todo_wine
ok(hr == MF_E_SHUTDOWN, "Unexpected hr %#x.\n", hr); ok(hr == MF_E_SHUTDOWN, "Unexpected hr %#x.\n", hr);
hr = IMFMediaEngine_GetVideoAspectRatio(media_engine, &cx, &cy); hr = IMFMediaEngine_GetVideoAspectRatio(media_engine, &cx, &cy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment