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

Unified Diff: media/audio/win/audio_low_latency_output_win.cc

Issue 281223002: Removed LOG_GETLASTERROR and LOG_ERRNO macros. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 05/14/2014 11:20:03.21 Created 6 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 | « device/hid/hid_service_win.cc ('k') | media/base/user_input_monitor_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_low_latency_output_win.cc
diff --git a/media/audio/win/audio_low_latency_output_win.cc b/media/audio/win/audio_low_latency_output_win.cc
index 5c3205c9f25f55024eaee6f1dc3b130ada5c4c73..6aad434f6e6691a983d649469d3266b468ee6765 100644
--- a/media/audio/win/audio_low_latency_output_win.cc
+++ b/media/audio/win/audio_low_latency_output_win.cc
@@ -252,8 +252,7 @@ void WASAPIAudioOutputStream::Start(AudioSourceCallback* callback) {
// Start streaming data between the endpoint buffer and the audio engine.
HRESULT hr = audio_client_->Start();
if (FAILED(hr)) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to start output streaming: " << std::hex << hr;
+ PLOG(ERROR) << "Failed to start output streaming: " << std::hex << hr;
StopThread();
callback->OnError(this);
}
@@ -268,8 +267,7 @@ void WASAPIAudioOutputStream::Stop() {
// Stop output audio streaming.
HRESULT hr = audio_client_->Stop();
if (FAILED(hr)) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to stop output streaming: " << std::hex << hr;
+ PLOG(ERROR) << "Failed to stop output streaming: " << std::hex << hr;
source_->OnError(this);
}
@@ -280,8 +278,7 @@ void WASAPIAudioOutputStream::Stop() {
// Flush all pending data and reset the audio clock stream position to 0.
hr = audio_client_->Reset();
if (FAILED(hr)) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to reset streaming: " << std::hex << hr;
+ PLOG(ERROR) << "Failed to reset streaming: " << std::hex << hr;
callback->OnError(this);
}
« no previous file with comments | « device/hid/hid_service_win.cc ('k') | media/base/user_input_monitor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698