mf/session: Forward MEReconnect* events to the application.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-04-12 12:19:54 +03:00 committed by Alexandre Julliard
parent a2728cdece
commit 6ff7575ae8
1 changed files with 9 additions and 0 deletions

View File

@ -3233,6 +3233,15 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
LeaveCriticalSection(&session->cs); LeaveCriticalSection(&session->cs);
break; break;
case MEReconnectStart:
case MEReconnectEnd:
EnterCriticalSection(&session->cs);
if (session_get_media_source(session, (IMFMediaSource *)event_source))
IMFMediaEventQueue_QueueEvent(session->event_queue, event);
LeaveCriticalSection(&session->cs);
break;
case MENewStream: case MENewStream:
stream = (IMFMediaStream *)value.punkVal; stream = (IMFMediaStream *)value.punkVal;