| Index: media/audio/win/waveout_output_win.cc
|
| ===================================================================
|
| --- media/audio/win/waveout_output_win.cc (revision 172970)
|
| +++ media/audio/win/waveout_output_win.cc (working copy)
|
| @@ -278,6 +278,9 @@
|
| return;
|
| }
|
|
|
| + // Wait for lock to ensure all outstanding callbacks have completed.
|
| + base::AutoLock auto_lock(lock_);
|
| +
|
| // waveOutReset() leaves buffers in the unpredictable state, causing
|
| // problems if we want to close, release, or reuse them. Fix the states.
|
| for (int ix = 0; ix != num_buffers_; ++ix) {
|
|
|