]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10138: [freeswitch-core,mod_conference] Add alpha video to conference
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Mar 2017 21:28:18 +0000 (16:28 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Mar 2017 21:28:18 +0000 (16:28 -0500)
src/mod/applications/mod_conference/conference_file.c

index b0bdbf1e90c86a98c9bc051bbcb864ae2032fe89..b9126d0f2c362f6ce332810c03f62536e4dd7f26 100644 (file)
@@ -93,16 +93,18 @@ switch_status_t conference_file_close(conference_obj_t *conference, conference_f
        }
 #endif
 
-       canvas = conference->canvases[node->canvas_id];
+       if (node->canvas_id > -1) {
+               canvas = conference->canvases[node->canvas_id];
 
-       if (canvas->playing_video_file) {
-               canvas->send_keyframe = 1;
-               canvas->playing_video_file = 0;
-       }
+               if (canvas->playing_video_file) {
+                       canvas->send_keyframe = 1;
+                       canvas->playing_video_file = 0;
+               }
 
-       if (canvas->overlay_video_file) {
-               canvas->send_keyframe = 1;
-               canvas->overlay_video_file = 0;
+               if (canvas->overlay_video_file) {
+                       canvas->send_keyframe = 1;
+                       canvas->overlay_video_file = 0;
+               }
        }
 
        return switch_core_file_close(&node->fh);