Commit b5f04cac authored by rvargas's avatar rvargas Committed by Commit bot

Remove implicit HANDLE conversions from media.

BUG=416722
R=shadi@chromium.org

Review URL: https://codereview.chromium.org/598243002

Cr-Commit-Position: refs/heads/master@{#296609}
parent d1ab0241
......@@ -365,7 +365,8 @@ void WASAPIAudioInputStream::Run() {
bool recording = true;
bool error = false;
double volume = GetVolume();
HANDLE wait_array[2] = {stop_capture_event_, audio_samples_ready_event_};
HANDLE wait_array[2] =
{ stop_capture_event_.Get(), audio_samples_ready_event_.Get() };
while (recording && !error) {
HRESULT hr = S_FALSE;
......
......@@ -356,8 +356,8 @@ void WASAPIAudioOutputStream::Run() {
bool playing = true;
bool error = false;
HANDLE wait_array[] = { stop_render_event_,
audio_samples_render_event_ };
HANDLE wait_array[] = { stop_render_event_.Get(),
audio_samples_render_event_.Get() };
UINT64 device_frequency = 0;
// The device frequency is the frequency generated by the hardware clock in
......
......@@ -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.
......
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