Commit 3b230b58 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/session: Forward MEQualityNotify event to the quality manager.

parent fa0beb85
......@@ -2910,6 +2910,7 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
IMFMediaEventGenerator *event_source;
IMFMediaEvent *event = NULL;
MediaEventType event_type;
IUnknown *object = NULL;
IMFMediaSource *source;
IMFMediaStream *stream;
PROPVARIANT value;
......@@ -3058,6 +3059,21 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
LeaveCriticalSection(&session->cs);
break;
case MEQualityNotify:
if (session->quality_manager)
{
if (FAILED(IMFMediaEventGenerator_QueryInterface(event_source, &IID_IMFStreamSink, (void **)&object)))
IMFMediaEventGenerator_QueryInterface(event_source, &IID_IMFTransform, (void **)&object);
if (object)
{
IMFQualityManager_NotifyQualityEvent(session->quality_manager, object, event);
IUnknown_Release(object);
}
}
break;
default:
;
}
......
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