diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-21 20:06:23 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-21 20:06:23 +0000 |
commit | ad8cfa996623e585ea16665fc18db174fe947121 (patch) | |
tree | c44f98c608a090dccfc90aa81c95c814f26a7775 /media/audio | |
parent | 0f4dffbf1a776c3bdd124be30e983247fb4d6896 (diff) | |
download | chromium_src-ad8cfa996623e585ea16665fc18db174fe947121.zip chromium_src-ad8cfa996623e585ea16665fc18db174fe947121.tar.gz chromium_src-ad8cfa996623e585ea16665fc18db174fe947121.tar.bz2 |
Removed LOG_GETLASTERROR and LOG_ERRNO macros.
Most code uses PLOG with the same effect.
TBR=bradchen
NOTRY=true
Review URL: https://codereview.chromium.org/281223002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio')
-rw-r--r-- | media/audio/win/audio_low_latency_output_win.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/media/audio/win/audio_low_latency_output_win.cc b/media/audio/win/audio_low_latency_output_win.cc index 5c3205c..6aad434 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); } |