| Index: talk/media/webrtc/webrtcvoiceengine.cc
|
| diff --git a/talk/media/webrtc/webrtcvoiceengine.cc b/talk/media/webrtc/webrtcvoiceengine.cc
|
| index 46d780e3d9ecbcee7448b2bc70862d0ac8c41cb2..150042300de48cd572d46854784ba21550602a31 100644
|
| --- a/talk/media/webrtc/webrtcvoiceengine.cc
|
| +++ b/talk/media/webrtc/webrtcvoiceengine.cc
|
| @@ -1153,12 +1153,22 @@ void WebRtcVoiceEngine::StopAecDump() {
|
|
|
| bool WebRtcVoiceEngine::StartRtcEventLog(rtc::PlatformFile file) {
|
| RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
|
| - return voe_wrapper_->codec()->GetEventLog()->StartLogging(file);
|
| + webrtc::RtcEventLog* event_log = voe_wrapper_->codec()->GetEventLog();
|
| + if (event_log) {
|
| + return event_log->StartLogging(file);
|
| + }
|
| + LOG_RTCERR0(StartRtcEventLog);
|
| + return false;
|
| }
|
|
|
| void WebRtcVoiceEngine::StopRtcEventLog() {
|
| RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
|
| - voe_wrapper_->codec()->GetEventLog()->StopLogging();
|
| + webrtc::RtcEventLog* event_log = voe_wrapper_->codec()->GetEventLog();
|
| + if (event_log) {
|
| + event_log->StopLogging();
|
| + return;
|
| + }
|
| + LOG_RTCERR0(StopRtcEventLog);
|
| }
|
|
|
| int WebRtcVoiceEngine::CreateVoEChannel() {
|
|
|