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
This commit is contained in:
mflodman@webrtc.org 2012-01-19 18:41:39 +00:00
parent 20cd06123c
commit 0f4cb131c6

View File

@ -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) {