| Index: webrtc/common_audio/wav_file.cc
|
| diff --git a/webrtc/common_audio/wav_file.cc b/webrtc/common_audio/wav_file.cc
|
| index 8dae7d6e98cb2fe17145bb435620c0de65ce453d..67a33a9f549f665fd8bf89fb6550b368c81b44bc 100644
|
| --- a/webrtc/common_audio/wav_file.cc
|
| +++ b/webrtc/common_audio/wav_file.cc
|
| @@ -39,7 +39,7 @@ class ReadableWavFile : public ReadableWav {
|
|
|
| WavReader::WavReader(const std::string& filename)
|
| : file_handle_(fopen(filename.c_str(), "rb")) {
|
| - RTC_CHECK(file_handle_ && "Could not open wav file for reading.");
|
| + RTC_CHECK(file_handle_) << "Could not open wav file for reading.";
|
|
|
| ReadableWavFile readable(file_handle_);
|
| WavFormat format;
|
| @@ -96,7 +96,7 @@ WavWriter::WavWriter(const std::string& filename, int sample_rate,
|
| num_channels_(num_channels),
|
| num_samples_(0),
|
| file_handle_(fopen(filename.c_str(), "wb")) {
|
| - RTC_CHECK(file_handle_ && "Could not open wav file for writing.");
|
| + RTC_CHECK(file_handle_) << "Could not open wav file for writing.";
|
| RTC_CHECK(CheckWavParameters(num_channels_, sample_rate_, kWavFormat,
|
| kBytesPerSample, num_samples_));
|
|
|
|
|