Commit 77731392 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfmediaengine: Mask some source flags returned from GetResourceCharacteristics().

parent 609de17e
...@@ -2601,9 +2601,17 @@ static HRESULT WINAPI media_engine_GetResourceCharacteristics(IMFMediaEngineEx * ...@@ -2601,9 +2601,17 @@ static HRESULT WINAPI media_engine_GetResourceCharacteristics(IMFMediaEngineEx *
EnterCriticalSection(&engine->cs); EnterCriticalSection(&engine->cs);
if (engine->flags & FLAGS_ENGINE_SHUT_DOWN) if (engine->flags & FLAGS_ENGINE_SHUT_DOWN)
{
hr = MF_E_SHUTDOWN; hr = MF_E_SHUTDOWN;
else if (engine->presentation.source) }
hr = IMFMediaSource_GetCharacteristics(engine->presentation.source, flags); else if (engine->presentation.source && flags)
{
if (SUCCEEDED(IMFMediaSource_GetCharacteristics(engine->presentation.source, flags)))
{
*flags = *flags & 0xf;
hr = S_OK;
}
}
LeaveCriticalSection(&engine->cs); LeaveCriticalSection(&engine->cs);
return hr; return hr;
......
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