]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11291 #resolve fix canvas id it was impossible to watch the first canvas
authorSeven Du <dujinfang@x-y-t.cn>
Wed, 28 Jun 2017 13:07:30 +0000 (21:07 +0800)
committerAndrey Volk <andywolk@gmail.com>
Tue, 16 Jul 2019 19:32:29 +0000 (23:32 +0400)
src/mod/applications/mod_conference/conference_member.c

index 9ffbdadeffb391d2e3d298e40a1bf3b4971b4bbc..a69e878947187be79613f2cfa324c40bfc557bed 100644 (file)
@@ -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;
                        }