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:
parent
13a1dfd7c2
commit
12d72c891d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue