提交 279513bb authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-7513: clear group when switching to standard layout

上级 41de24ea
......@@ -7633,11 +7633,15 @@ static switch_status_t conf_api_sub_vid_layout(conference_obj_t *conference, swi
}
}
if (!vlayout && !(vlayout = switch_core_hash_find(conference->layout_hash, argv[2]))) {
if (!vlayout && (vlayout = switch_core_hash_find(conference->layout_hash, argv[2]))) {
conference->video_layout_group = NULL;
}
if (!vlayout) {
stream->write_function(stream, "Invalid layout [%s]\n", argv[2]);
return SWITCH_STATUS_SUCCESS;
}
stream->write_function(stream, "Change to layout [%s]\n", vlayout->name);
switch_mutex_lock(conference->member_mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论