quartz/filtergraph: Also set the default sync source if necessary in IMediaControl_Pause().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-09-25 23:30:19 -05:00 committed by Alexandre Julliard
parent 13a1dfd7c2
commit 12d72c891d
1 changed files with 3 additions and 0 deletions

View File

@ -2273,6 +2273,9 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface)
if (This->state == State_Paused) if (This->state == State_Paused)
goto out; goto out;
if (This->defaultclock && !This->refClock)
IFilterGraph2_SetDefaultSyncSource(&This->IFilterGraph2_iface);
if (This->state == State_Running && This->refClock && This->start_time >= 0) if (This->state == State_Running && This->refClock && This->start_time >= 0)
IReferenceClock_GetTime(This->refClock, &This->pause_time); IReferenceClock_GetTime(This->refClock, &This->pause_time);
else else