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

Unified Diff: media/audio/clockless_audio_sink.cc

Issue 2023343002: Migrate WaitableEvent to enum-based constructor in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Created 4 years, 7 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/audio_output_device.cc ('k') | media/audio/scoped_task_runner_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « media/audio/audio_output_device.cc ('k') | media/audio/scoped_task_runner_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698