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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue