Commit 910bd392 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

mciwave: Abort the playback thread regardless of state when stopping.

parent 5bb80251
...@@ -631,12 +631,8 @@ static DWORD WAVE_mciStop(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS ...@@ -631,12 +631,8 @@ static DWORD WAVE_mciStop(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS
case MCI_MODE_PAUSE: case MCI_MODE_PAUSE:
case MCI_MODE_PLAY: case MCI_MODE_PLAY:
case MCI_MODE_RECORD: case MCI_MODE_RECORD:
{ wmw->dwStatus = MCI_MODE_NOT_READY;
int oldStat = wmw->dwStatus; dwRet = (wmw->fInput) ? waveInReset(wmw->hWave) : waveOutReset(wmw->hWave);
wmw->dwStatus = MCI_MODE_NOT_READY;
if (oldStat == MCI_MODE_PAUSE)
dwRet = (wmw->fInput) ? waveInReset(wmw->hWave) : waveOutReset(wmw->hWave);
}
while (wmw->dwStatus != MCI_MODE_STOP) while (wmw->dwStatus != MCI_MODE_STOP)
Sleep(10); Sleep(10);
break; break;
......
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