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

Unified Diff: webrtc/voice_engine/file_recorder.cc

Issue 2787263003: Delete all log messages depending on system_wrappers. (Closed)
Patch Set: Created 3 years, 9 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 | « webrtc/voice_engine/file_player.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « webrtc/voice_engine/file_player.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698