FS-8527 [mod_conference] Do not send the video of last_video_floor_holder to video_floor_holder if already related one video to it.

This commit is contained in:
root 2015-11-13 11:00:18 +08:00 committed by micjerry
parent ff283f60de
commit acecda7596
1 changed files with 2 additions and 1 deletions

View File

@ -3468,7 +3468,8 @@ switch_status_t conference_video_thread_callback(switch_core_session_t *session,
conference_member_t *fmember;
if ((fmember = conference_member_get(member->conference, member->conference->video_floor_holder))) {
switch_core_session_write_video_frame(fmember->session, frame, SWITCH_IO_FLAG_NONE, 0);
if (!conference_utils_member_test_flag(fmember, MFLAG_RECEIVING_VIDEO))
switch_core_session_write_video_frame(fmember->session, frame, SWITCH_IO_FLAG_NONE, 0);
switch_thread_rwlock_unlock(fmember->rwlock);
}
}