Skip to content
Snippets Groups Projects
Commit 4bbeb429 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard
Browse files

Fixed deadlock when stopping playback.

parent 85cbe821
No related branches found
No related tags found
No related merge requests found
......@@ -609,7 +609,11 @@ static DWORD MCIAVI_mciStop(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpPa
SetEvent(wma->hStopEvent);
/* fall through */
case MCI_MODE_PAUSE:
/* Since our wave notification callback takes the lock,
* we must release it before resetting the device */
LeaveCriticalSection(&wma->cs);
dwRet = waveOutReset(wma->hWave);
EnterCriticalSection(&wma->cs);
/* fall through */
default:
do /* one more chance for an async thread to finish */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment