| Index: media/audio/win/waveout_output_win.cc
|
| diff --git a/media/audio/win/waveout_output_win.cc b/media/audio/win/waveout_output_win.cc
|
| index 21532b76b7bf908e40a5a929e9ee9b4d31e69dfb..241152744489561a213391b9a9c52ab59da3d201 100644
|
| --- a/media/audio/win/waveout_output_win.cc
|
| +++ b/media/audio/win/waveout_output_win.cc
|
| @@ -142,6 +142,7 @@ void PCMWaveOutAudioOutputStream::Start(AudioSourceCallback* callback) {
|
| return;
|
| callback_ = callback;
|
| state_ = PCMA_PLAYING;
|
| + pending_bytes_ = 0;
|
| WAVEHDR* buffer = buffer_;
|
| for (int ix = 0; ix != kNumBuffers; ++ix) {
|
| QueueNextPacket(buffer); // Read more data.
|
| @@ -172,8 +173,8 @@ void PCMWaveOutAudioOutputStream::Start(AudioSourceCallback* callback) {
|
| }
|
|
|
| // Stopping is tricky. First, no buffer should be locked by the audio driver
|
| -// or else the waveOutReset will deadlock and secondly, the callback should not
|
| -// be inside the AudioSource's OnMoreData because waveOutReset() forcefully
|
| +// or else the waveOutReset() will deadlock and secondly, the callback should
|
| +// not be inside the AudioSource's OnMoreData because waveOutReset() forcefully
|
| // kills the callback thread.
|
| void PCMWaveOutAudioOutputStream::Stop() {
|
| if (state_ != PCMA_PLAYING)
|
|
|