From 1da17bb3b3406d99b58ed150d7baf3e96feeb425 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 16 Mar 2017 16:28:18 -0500 Subject: [PATCH] FS-10138: [freeswitch-core,mod_conference] Add alpha video to conference --- .../mod_conference/conference_file.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/mod/applications/mod_conference/conference_file.c b/src/mod/applications/mod_conference/conference_file.c index b0bdbf1e90..b9126d0f2c 100644 --- a/src/mod/applications/mod_conference/conference_file.c +++ b/src/mod/applications/mod_conference/conference_file.c @@ -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);