Commit ab798639 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: Always update time when Run is called.

parent 804a9d14
...@@ -345,11 +345,11 @@ static HRESULT WINAPI NullRenderer_Run(IBaseFilter * iface, REFERENCE_TIME tStar ...@@ -345,11 +345,11 @@ static HRESULT WINAPI NullRenderer_Run(IBaseFilter * iface, REFERENCE_TIME tStar
TRACE("(%p/%p)->(%s)\n", This, iface, wine_dbgstr_longlong(tStart)); TRACE("(%p/%p)->(%s)\n", This, iface, wine_dbgstr_longlong(tStart));
EnterCriticalSection(&This->filter.csFilter); EnterCriticalSection(&This->filter.csFilter);
This->filter.rtStreamStart = tStart;
if (This->filter.state == State_Running) if (This->filter.state == State_Running)
goto out; goto out;
if (This->pInputPin->pin.pConnectedTo) if (This->pInputPin->pin.pConnectedTo)
{ {
This->filter.rtStreamStart = tStart;
This->pInputPin->end_of_stream = 0; This->pInputPin->end_of_stream = 0;
} }
else if (This->filter.filterInfo.pGraph) else if (This->filter.filterInfo.pGraph)
......
...@@ -304,6 +304,7 @@ HRESULT WINAPI Parser_Run(IBaseFilter * iface, REFERENCE_TIME tStart) ...@@ -304,6 +304,7 @@ HRESULT WINAPI Parser_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
{ {
HRESULT hr_any = VFW_E_NOT_CONNECTED; HRESULT hr_any = VFW_E_NOT_CONNECTED;
This->filter.rtStreamStart = tStart;
if (This->filter.state == State_Running || This->filter.state == State_Paused) if (This->filter.state == State_Running || This->filter.state == State_Paused)
{ {
This->filter.state = State_Running; This->filter.state = State_Running;
...@@ -312,8 +313,6 @@ HRESULT WINAPI Parser_Run(IBaseFilter * iface, REFERENCE_TIME tStart) ...@@ -312,8 +313,6 @@ HRESULT WINAPI Parser_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
return S_OK; return S_OK;
} }
This->filter.rtStreamStart = tStart;
for (i = 1; i < (This->cStreams + 1); i++) for (i = 1; i < (This->cStreams + 1); i++)
{ {
hr = BaseOutputPinImpl_Active((BaseOutputPin *)This->ppPins[i]); hr = BaseOutputPinImpl_Active((BaseOutputPin *)This->ppPins[i]);
......
...@@ -832,9 +832,9 @@ static HRESULT WINAPI VideoRenderer_Run(IBaseFilter * iface, REFERENCE_TIME tSta ...@@ -832,9 +832,9 @@ static HRESULT WINAPI VideoRenderer_Run(IBaseFilter * iface, REFERENCE_TIME tSta
TRACE("(%p/%p)->(%s)\n", This, iface, wine_dbgstr_longlong(tStart)); TRACE("(%p/%p)->(%s)\n", This, iface, wine_dbgstr_longlong(tStart));
EnterCriticalSection(&This->filter.csFilter); EnterCriticalSection(&This->filter.csFilter);
This->filter.rtStreamStart = tStart;
if (This->filter.state == State_Running) if (This->filter.state == State_Running)
goto out; goto out;
This->filter.rtStreamStart = tStart;
QualityControlRender_Start(&This->qcimpl, tStart); QualityControlRender_Start(&This->qcimpl, tStart);
if (This->pInputPin->pin.pConnectedTo && (This->filter.state == State_Stopped || !This->pInputPin->end_of_stream)) if (This->pInputPin->pin.pConnectedTo && (This->filter.state == State_Stopped || !This->pInputPin->end_of_stream))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment