FS-11291 #resolve fix canvas id it was impossible to watch the first canvas

This commit is contained in:
Seven Du authored and Andrey Volk committed 2019-07-16 23:32:29 +04:00
1 parent 68abd253fe
commit 26f4c98b21
1 file changed
+1 -1
@@ -800,7 +800,7 @@ switch_status_t conference_member_add(conference_obj_t *conference, conference_m
if ((var = switch_channel_get_variable_dup(member->channel, "video_initial_watching_canvas", SWITCH_FALSE, -1))) {
int id = atoi(var) - 1;
if (id == 0) {
if (id == -1) {
id = conference->canvas_count;
}