FS-8719: [mod_conference] fix seg when building without video support, but specifying video_mute_png variable for a conference member

This commit is contained in:
Michael Jerris 2016-01-12 12:25:36 -05:00
parent 3304492b41
commit aee36dfc59
1 changed files with 23 additions and 21 deletions

View File

@ -682,7 +682,7 @@ switch_status_t conference_member_add(conference_obj_t *conference, conference_m
call_list_t *call_list = NULL;
switch_channel_t *channel;
const char *controls = NULL, *position = NULL, *var = NULL;
switch_bool_t has_video = switch_core_has_video();
switch_assert(conference != NULL);
switch_assert(member != NULL);
@ -760,6 +760,7 @@ switch_status_t conference_member_add(conference_obj_t *conference, conference_m
conference_video_reset_member_codec_index(member);
if (has_video) {
if ((var = switch_channel_get_variable_dup(member->channel, "video_mute_png", SWITCH_FALSE, -1))) {
member->video_mute_png = switch_core_strdup(member->pool, var);
member->video_mute_img = switch_img_read_png(member->video_mute_png, SWITCH_IMG_FMT_I420);
@ -785,6 +786,7 @@ switch_status_t conference_member_add(conference_obj_t *conference, conference_m
switch_core_media_set_outgoing_bitrate(member->session, SWITCH_MEDIA_TYPE_VIDEO, member->max_bw_out);
}
}
}
switch_channel_set_variable_printf(channel, "conference_member_id", "%d", member->id);
switch_channel_set_variable_printf(channel, "conference_moderator", "%s", conference_utils_member_test_flag(member, MFLAG_MOD) ? "true" : "false");