Commit 68b5a057 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/session: Handle source buffering events.

parent f151550e
......@@ -2867,6 +2867,23 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
LeaveCriticalSection(&session->cs);
break;
case MEBufferingStarted:
case MEBufferingStopped:
EnterCriticalSection(&session->cs);
if (session_get_media_source(session, (IMFMediaSource *)event_source))
{
if (event_type == MEBufferingStarted)
IMFPresentationClock_Pause(session->clock);
else
IMFPresentationClock_Start(session->clock, PRESENTATION_CURRENT_POSITION);
IMFMediaEventQueue_QueueEvent(session->event_queue, event);
}
LeaveCriticalSection(&session->cs);
break;
case MENewStream:
stream = (IMFMediaStream *)value.punkVal;
......
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