FS-7958: [mod_conference] fix race condition causing crash in conference video MCU

This commit is contained in:
Michael Jerris 2015-08-12 18:31:30 -04:00
parent facf08516c
commit 2f61fe0193
1 changed files with 1 additions and 1 deletions

View File

@ -1922,7 +1922,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
switch_mutex_lock(conference->member_mutex); switch_mutex_lock(conference->member_mutex);
for (imember = conference->members; imember; imember = imember->next) { for (imember = conference->members; imember; imember = imember->next) {
if (switch_channel_ready(imember->channel) && conference_utils_member_test_flag(imember, MFLAG_RUNNING) if (imember->channel && switch_channel_ready(imember->channel) && conference_utils_member_test_flag(imember, MFLAG_RUNNING)
&& imember->canvas_id == canvas->canvas_id) { && imember->canvas_id == canvas->canvas_id) {
canvas_count++; canvas_count++;
} }