From 0f4cb131c66b064ea496d33512143d946b4498da Mon Sep 17 00:00:00 2001 From: "mflodman@webrtc.org" Date: Thu, 19 Jan 2012 18:41:39 +0000 Subject: [PATCH] Added NULL check in ViEFileImpl. BUG=C-10188 Review URL: https://webrtc-codereview.appspot.com/344016 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1480 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/video_engine/vie_file_impl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_engine/vie_file_impl.cc b/src/video_engine/vie_file_impl.cc index 5a885ad57c..5667c88ad0 100644 --- a/src/video_engine/vie_file_impl.cc +++ b/src/video_engine/vie_file_impl.cc @@ -366,6 +366,8 @@ int ViEFileImpl::StartRecordOutgoingVideo(const int video_channel, VoiceEngine* ve_ptr = NULL; if (audio_source != NO_AUDIO) { ViEChannel* vie_channel = cs.Channel(video_channel); + // Channel should exists since we have a ViEEncoder. + assert(vie_channel); ve_channel_id = vie_channel->VoiceChannel(); ve_ptr = channel_manager_.GetVoiceEngine(); if (!ve_ptr) {