quartz: Fix stop_playback used in pullpin.
This commit is contained in:
parent
46ab1b2b1e
commit
9d6239bdac
|
@ -1517,7 +1517,7 @@ HRESULT PullPin_PauseProcessing(PullPin * This)
|
||||||
|
|
||||||
PullPin_WaitForStateChange(This, INFINITE);
|
PullPin_WaitForStateChange(This, INFINITE);
|
||||||
EnterCriticalSection(This->pin.pCritSec);
|
EnterCriticalSection(This->pin.pCritSec);
|
||||||
This->stop_playback = 0;
|
This->stop_playback = 1;
|
||||||
LeaveCriticalSection(This->pin.pCritSec);
|
LeaveCriticalSection(This->pin.pCritSec);
|
||||||
ResetEvent(This->hEventStateChanged);
|
ResetEvent(This->hEventStateChanged);
|
||||||
|
|
||||||
|
@ -1535,7 +1535,7 @@ HRESULT PullPin_StopProcessing(PullPin * This)
|
||||||
{
|
{
|
||||||
PullPin_WaitForStateChange(This, INFINITE);
|
PullPin_WaitForStateChange(This, INFINITE);
|
||||||
|
|
||||||
This->stop_playback = 0;
|
This->stop_playback = 1;
|
||||||
ResetEvent(This->hEventStateChanged);
|
ResetEvent(This->hEventStateChanged);
|
||||||
|
|
||||||
if (!QueueUserAPC(PullPin_Thread_Stop, This->hThread, (ULONG_PTR)This))
|
if (!QueueUserAPC(PullPin_Thread_Stop, This->hThread, (ULONG_PTR)This))
|
||||||
|
|
Loading…
Reference in New Issue