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:
Nikolay Sivov 2020-06-02 11:41:07 +03:00 committed by Alexandre Julliard
parent e9cc1d58b4
commit 13aafb43a3
1 changed files with 2 additions and 2 deletions

View File

@ -764,7 +764,7 @@ static HRESULT init_media_engine(DWORD flags, IMFAttributes *attributes, struct
hr = IMFAttributes_GetUnknown(attributes, &MF_MEDIA_ENGINE_CALLBACK, &IID_IMFMediaEngineNotify,
(void **)&engine->callback);
if (FAILED(hr))
return MF_E_ATTRIBUTENOTFOUND;
return hr;
if (FAILED(hr = MFCreateMediaSession(NULL, &engine->session)))
return hr;