Commit 484fdcf7 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: End the flush downstream first before restarting playback in pullpin.

parent 6129e92e
...@@ -1783,6 +1783,11 @@ HRESULT WINAPI PullPin_EndFlush(IPin * iface) ...@@ -1783,6 +1783,11 @@ HRESULT WINAPI PullPin_EndFlush(IPin * iface)
TRACE("(%p)->()\n", iface); TRACE("(%p)->()\n", iface);
/* Send further first: Else a race condition might terminate processing early */
EnterCriticalSection(This->pin.pCritSec);
SendFurther( iface, deliver_endflush, NULL, NULL );
LeaveCriticalSection(This->pin.pCritSec);
EnterCriticalSection(&This->thread_lock); EnterCriticalSection(&This->thread_lock);
{ {
FILTER_STATE state; FILTER_STATE state;
...@@ -1795,10 +1800,6 @@ HRESULT WINAPI PullPin_EndFlush(IPin * iface) ...@@ -1795,10 +1800,6 @@ HRESULT WINAPI PullPin_EndFlush(IPin * iface)
} }
LeaveCriticalSection(&This->thread_lock); LeaveCriticalSection(&This->thread_lock);
EnterCriticalSection(This->pin.pCritSec);
SendFurther( iface, deliver_endflush, NULL, NULL );
LeaveCriticalSection(This->pin.pCritSec);
return S_OK; return S_OK;
} }
......
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