| 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);
|
| }
|
|
|
|
|