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

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

Issue 540003: Revert 35837 - Failed media tests - linux: grab device name before closing it... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 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 | « no previous file | no next file » | 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 35846)
+++ media/audio/linux/alsa_output.cc (working copy)
@@ -756,11 +756,10 @@
}
bool AlsaPcmOutputStream::CloseDevice(snd_pcm_t* handle) {
- std::string name = wrapper_->PcmName(handle);
int error = wrapper_->PcmClose(handle);
if (error < 0) {
- LOG(ERROR) << "Error closing audio device (" << name << "): "
- << wrapper_->StrError(error);
+ LOG(ERROR) << "Cannot close audio device (" << wrapper_->PcmName(handle)
+ << "): " << wrapper_->StrError(error);
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698