mf: Preroll on sink start.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-05-13 16:42:08 +03:00 committed by Alexandre Julliard
parent bd1bfd2c8a
commit cbf156b780
1 changed files with 2 additions and 0 deletions

View File

@ -567,6 +567,8 @@ static HRESULT WINAPI audio_renderer_clock_sink_OnClockStart(IMFClockStateSink *
hr = MF_E_NOT_INITIALIZED;
IMFMediaEventQueue_QueueEventParamVar(renderer->stream_event_queue, MEStreamSinkStarted, &GUID_NULL, hr, NULL);
if (SUCCEEDED(hr))
audio_renderer_preroll(renderer);
LeaveCriticalSection(&renderer->cs);
return hr;