mfmediaengine: Propagate error out on missing callback attribute.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e9cc1d58b4
commit
13aafb43a3
|
@ -762,9 +762,9 @@ static HRESULT init_media_engine(DWORD flags, IMFAttributes *attributes, struct
|
|||
InitializeCriticalSection(&engine->cs);
|
||||
|
||||
hr = IMFAttributes_GetUnknown(attributes, &MF_MEDIA_ENGINE_CALLBACK, &IID_IMFMediaEngineNotify,
|
||||
(void **)&engine->callback);
|
||||
(void **)&engine->callback);
|
||||
if (FAILED(hr))
|
||||
return MF_E_ATTRIBUTENOTFOUND;
|
||||
return hr;
|
||||
|
||||
if (FAILED(hr = MFCreateMediaSession(NULL, &engine->session)))
|
||||
return hr;
|
||||
|
|
Loading…
Reference in New Issue