winegstreamer: Always update time when Run is called.

This commit is contained in:
Maarten Lankhorst 2010-12-06 14:16:43 +01:00 committed by Alexandre Julliard
parent ab7986390a
commit feb716b423
1 changed files with 4 additions and 0 deletions

View File

@ -1179,6 +1179,10 @@ static HRESULT WINAPI GST_Run(IBaseFilter *iface, REFERENCE_TIME tStart) {
if (!This->gstfilter) if (!This->gstfilter)
return VFW_E_NOT_CONNECTED; 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); gst_element_get_state(This->gstfilter, &now, NULL, -1);
if (now == GST_STATE_PLAYING) if (now == GST_STATE_PLAYING)
return S_OK; return S_OK;