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

Unified Diff: media/audio/linux/alsa_output.cc

Issue 3192017: Revert 57254 - Share one thread between all AudioOutputControllers instead of... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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/linux/alsa_output.h ('k') | media/audio/linux/audio_manager_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/linux/alsa_output.cc
===================================================================
--- media/audio/linux/alsa_output.cc (revision 57255)
+++ media/audio/linux/alsa_output.cc (working copy)
@@ -376,7 +376,7 @@
}
void AlsaPcmOutputStream::OpenTask(uint32 packet_size) {
- DCHECK_EQ(message_loop_, MessageLoop::current());
+ DCHECK_EQ(MessageLoop::current(), message_loop_);
// Initialize the configuration variables.
packet_size_ = packet_size;
@@ -422,7 +422,7 @@
}
void AlsaPcmOutputStream::StartTask() {
- DCHECK_EQ(message_loop_, MessageLoop::current());
+ DCHECK_EQ(MessageLoop::current(), message_loop_);
if (stop_stream_) {
return;
@@ -454,7 +454,7 @@
void AlsaPcmOutputStream::CloseTask() {
// NOTE: Keep this function idempotent to handle errors that might cause
// multiple CloseTasks to be posted.
- DCHECK_EQ(message_loop_, MessageLoop::current());
+ DCHECK_EQ(MessageLoop::current(), message_loop_);
// Shutdown the audio device.
if (playback_handle_ && !CloseDevice(playback_handle_)) {
@@ -470,7 +470,7 @@
}
void AlsaPcmOutputStream::BufferPacket(bool* source_exhausted) {
- DCHECK_EQ(message_loop_, MessageLoop::current());
+ DCHECK_EQ(MessageLoop::current(), message_loop_);
// If stopped, simulate a 0-lengthed packet.
if (stop_stream_) {
@@ -558,7 +558,7 @@
}
void AlsaPcmOutputStream::WritePacket() {
- DCHECK_EQ(message_loop_, MessageLoop::current());
+ DCHECK_EQ(MessageLoop::current(), message_loop_);
// If the device is in error, just eat the bytes.
if (stop_stream_) {
@@ -611,7 +611,7 @@
}
void AlsaPcmOutputStream::WriteTask() {
- DCHECK_EQ(message_loop_, MessageLoop::current());
+ DCHECK_EQ(MessageLoop::current(), message_loop_);
if (stop_stream_) {
return;
@@ -625,7 +625,7 @@
}
void AlsaPcmOutputStream::ScheduleNextWrite(bool source_exhausted) {
- DCHECK_EQ(message_loop_, MessageLoop::current());
+ DCHECK_EQ(MessageLoop::current(), message_loop_);
if (stop_stream_) {
return;
@@ -778,7 +778,7 @@
}
snd_pcm_sframes_t AlsaPcmOutputStream::GetAvailableFrames() {
- DCHECK_EQ(message_loop_, MessageLoop::current());
+ DCHECK_EQ(MessageLoop::current(), message_loop_);
if (stop_stream_) {
return 0;
« no previous file with comments | « media/audio/linux/alsa_output.h ('k') | media/audio/linux/audio_manager_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698