This commit is contained in:
Anthony Minessale 2018-03-30 11:36:22 -05:00 committed by Muteesa Fred
parent 9140aba9f9
commit 7ca8eec496
2 changed files with 11 additions and 12 deletions

View File

@ -2696,10 +2696,14 @@ void conference_video_pop_next_image(conference_member_t *member, switch_image_t
switch_image_t *img = *imgP;
int size = 0;
void *pop;
int half;
//if (member->avatar_png_img && switch_channel_test_flag(member->channel, CF_VIDEO_READY) && conference_utils_member_test_flag(member, MFLAG_ACK_VIDEO)) {
// switch_img_free(&member->avatar_png_img);
//}
if ((half = switch_queue_size(member->video_queue) / 2) < 1) {
half = 1;
}
if (switch_channel_test_flag(member->channel, CF_VIDEO_READY)) {
do {
@ -2712,7 +2716,7 @@ void conference_video_pop_next_image(conference_member_t *member, switch_image_t
break;
}
size = switch_queue_size(member->video_queue);
} while(size > 1);
} while(size > half);
if (conference_utils_member_test_flag(member, MFLAG_CAN_BE_SEEN) &&
member->video_layer_id > -1 &&
@ -3549,8 +3553,6 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
last_key_time = now;
}
switch_core_timer_next(&canvas->timer);
switch_mutex_lock(conference->member_mutex);
for (imember = conference->members; imember; imember = imember->next) {
@ -3696,6 +3698,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
}
}
for (omember = conference->members; omember; omember = omember->next) {
mcu_layer_t *layer = NULL;
switch_image_t *use_img = NULL;

View File

@ -343,13 +343,9 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob
members_seeing_video++;
}
if (!conference_utils_test_flag(conference, CFLAG_PERSONAL_CANVAS)) {
if (imember->avatar_png_img && !switch_channel_test_flag(channel, CF_VIDEO)) {
members_with_avatar++;
}
} else {
members_with_avatar = 0;
}
if (conference_utils_member_test_flag(imember, MFLAG_NOMOH)) {
nomoh++;