Prevent crash, video stream may not exist at this time.

This commit is contained in:
Ghislain MARY 2012-08-02 18:03:48 +02:00
parent fa824200e3
commit 93db3330b6

View file

@ -572,7 +572,7 @@ void linphone_call_enable_video(LinphoneCall *call, bool_t enabled)
}
}
} else {
if (ice_session != NULL) {
if ((ice_session != NULL) && (call->videostream != NULL)) {
ice_session_remove_check_list(ice_session, call->videostream->ice_check_list);
call->videostream->ice_check_list = NULL;
}