Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2097)

Unified Diff: media/audio/win/wavein_input_win.cc

Issue 598243002: Remove implicit HANDLE conversions from media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/win/audio_low_latency_output_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/wavein_input_win.cc
diff --git a/media/audio/win/wavein_input_win.cc b/media/audio/win/wavein_input_win.cc
index f12bcf244c54c2269c1cb6085618209b065e4f6a..e96a8774e47afde3d7dceca4dd4e073f5beaeec6 100644
--- a/media/audio/win/wavein_input_win.cc
+++ b/media/audio/win/wavein_input_win.cc
@@ -162,7 +162,7 @@ void PCMWaveInAudioInputStream::Stop() {
return;
// Wait for the callback to finish, it will signal us when ready to be reset.
- DWORD wait = ::WaitForSingleObject(stopped_event_, INFINITE);
+ DWORD wait = ::WaitForSingleObject(stopped_event_.Get(), INFINITE);
DCHECK_EQ(wait, WAIT_OBJECT_0);
// Stop input and reset the current position to zero for |wavein_|.
@@ -308,7 +308,7 @@ void PCMWaveInAudioInputStream::WaveCallback(HWAVEIN hwi, UINT msg,
// Main thread has called Stop() and set |callback_| to NULL and is
// now waiting to issue waveInReset which will kill this thread.
// We should not call AudioSourceCallback code anymore.
- ::SetEvent(obj->stopped_event_);
+ ::SetEvent(obj->stopped_event_.Get());
}
} else if (msg == WIM_CLOSE) {
// Intentionaly no-op for now.
« no previous file with comments | « media/audio/win/audio_low_latency_output_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698