Index: media/audio/clockless_audio_sink.cc |
diff --git a/media/audio/clockless_audio_sink.cc b/media/audio/clockless_audio_sink.cc |
index 8273dfbcf2890f5fb93915f6e456d0c406909d6b..91de5e0f5ab3994ac9e7f53f2c586dc25ececc7f 100644 |
--- a/media/audio/clockless_audio_sink.cc |
+++ b/media/audio/clockless_audio_sink.cc |
@@ -21,7 +21,9 @@ class ClocklessAudioSinkThread : public base::DelegateSimpleThread::Delegate { |
bool hashing) |
: callback_(callback), |
audio_bus_(AudioBus::Create(params)), |
- stop_event_(new base::WaitableEvent(false, false)) { |
+ stop_event_(new base::WaitableEvent( |
+ base::WaitableEvent::ResetPolicy::AUTOMATIC, |
+ base::WaitableEvent::InitialState::NOT_SIGNALED)) { |
if (hashing) |
audio_hash_.reset(new AudioHash()); |
} |