[PATCH 3/4] winegstreamer: Always update time when Run is called

Maarten Lankhorst m.b.lankhorst at gmail.com
Mon Dec 6 07:16:43 CST 2010


---
 dlls/winegstreamer/gstdemux.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 403f945..7b1c989 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1179,6 +1179,10 @@ static HRESULT WINAPI GST_Run(IBaseFilter *iface, REFERENCE_TIME tStart) {
     if (!This->gstfilter)
         return VFW_E_NOT_CONNECTED;
 
+    EnterCriticalSection(&This->filter.csFilter);
+    This->filter.rtStreamStart = tStart;
+    LeaveCriticalSection(&This->filter.csFilter);
+
     gst_element_get_state(This->gstfilter, &now, NULL, -1);
     if (now == GST_STATE_PLAYING)
         return S_OK;
-- 
1.7.1




More information about the wine-patches mailing list