Index: webrtc/voice_engine/file_recorder.cc |
diff --git a/webrtc/voice_engine/file_recorder.cc b/webrtc/voice_engine/file_recorder.cc |
index 9e1d5397bdf0cddb0b71865be78ff0e986aaf7a7..9735a858194ded677afe5e2eaa44f67b13ac40a6 100644 |
--- a/webrtc/voice_engine/file_recorder.cc |
+++ b/webrtc/voice_engine/file_recorder.cc |
@@ -19,7 +19,6 @@ |
#include "webrtc/modules/media_file/media_file.h" |
#include "webrtc/modules/media_file/media_file_defines.h" |
#include "webrtc/system_wrappers/include/event_wrapper.h" |
-#include "webrtc/system_wrappers/include/logging.h" |
#include "webrtc/typedefs.h" |
#include "webrtc/voice_engine/coder.h" |
@@ -105,8 +104,6 @@ int32_t FileRecorderImpl::StartRecordingAudioFile(const char* fileName, |
retVal = SetUpAudioEncoder(); |
} |
if (retVal != 0) { |
- LOG(LS_WARNING) << "Failed to initialize file " << fileName |
- << " for recording."; |
if (IsRecording()) { |
StopRecording(); |
@@ -126,7 +123,6 @@ int32_t FileRecorderImpl::StartRecordingAudioFile(OutStream* destStream, |
retVal = SetUpAudioEncoder(); |
} |
if (retVal != 0) { |
- LOG(LS_WARNING) << "Failed to initialize outStream for recording."; |
if (IsRecording()) { |
StopRecording(); |
@@ -147,8 +143,6 @@ bool FileRecorderImpl::IsRecording() const { |
int32_t FileRecorderImpl::RecordAudioToFile( |
const AudioFrame& incomingAudioFrame) { |
if (codec_info_.plfreq == 0) { |
- LOG(LS_WARNING) << "RecordAudioToFile() recording audio is not " |
- << "turned on."; |
return -1; |
} |
AudioFrame tempAudioFrame; |
@@ -195,8 +189,6 @@ int32_t FileRecorderImpl::RecordAudioToFile( |
STR_CASE_CMP(codec_info_.plname, "L16") != 0) { |
if (_audioEncoder.Encode(*ptrAudioFrame, _audioBuffer, |
&encodedLenInBytes) == -1) { |
- LOG(LS_WARNING) << "RecordAudioToFile() codec " << codec_info_.plname |
- << " not supported or failed to encode stream."; |
return -1; |
} |
} else { |
@@ -227,8 +219,6 @@ int32_t FileRecorderImpl::SetUpAudioEncoder() { |
if (_fileFormat == kFileFormatPreencodedFile || |
STR_CASE_CMP(codec_info_.plname, "L16") != 0) { |
if (_audioEncoder.SetEncodeCodec(codec_info_) == -1) { |
- LOG(LS_ERROR) << "SetUpAudioEncoder() codec " << codec_info_.plname |
- << " not supported."; |
return -1; |
} |
} |