]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
video refresh floor holder on conference join
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 31 Mar 2014 17:39:46 +0000 (22:39 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 31 Mar 2014 17:39:46 +0000 (22:39 +0500)
src/mod/applications/mod_conference/mod_conference.c

index 5796d813b42d9fdfbda4cf013b74fdb301792655..3fee4de8d7ce52a0589ca00a8182982cb6d0bcae 100644 (file)
@@ -1839,6 +1839,14 @@ static switch_status_t conference_add_member(conference_obj_t *conference, confe
                        }
                        /* Tell the channel to request a fresh vid frame */
                        switch_core_session_refresh_video(member->session);
+
+                       if (conference->video_floor_holder) {
+                               switch_mutex_lock(conference->mutex);
+                               if (conference->video_floor_holder) {
+                                       switch_core_session_refresh_video(conference->video_floor_holder->session);
+                               }
+                               switch_mutex_unlock(conference->mutex);
+                       }
                }
 
                if (!switch_channel_get_variable(channel, "conference_call_key")) {