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

Alexandre Julliard julliard at winehq.org
Wed Sep 26 14:22:32 CDT 2018


Module: wine
Branch: master
Commit: 12d72c891db5064ab468c7e5092bf8151a8516a5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=12d72c891db5064ab468c7e5092bf8151a8516a5

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue Sep 25 23:30:19 2018 -0500

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

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/filtergraph.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index 8d99ee5..f173c12 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -2273,6 +2273,9 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface)
     if (This->state == State_Paused)
         goto out;
 
+    if (This->defaultclock && !This->refClock)
+        IFilterGraph2_SetDefaultSyncSource(&This->IFilterGraph2_iface);
+
     if (This->state == State_Running && This->refClock && This->start_time >= 0)
         IReferenceClock_GetTime(This->refClock, &This->pause_time);
     else




More information about the wine-cvs mailing list