From c2ac863492a43b7638a5763bc580e07da61a91d7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 7 May 2012 08:48:22 -0500 Subject: [PATCH] FS-4176 send vid refresh when switching to mirror --- src/mod/applications/mod_conference/mod_conference.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 8f33a6ebe7..aa5a1a3015 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -1233,12 +1233,18 @@ static void *SWITCH_THREAD_FUNC conference_video_mirror_thread_run(switch_thread switch_status_t status; switch_frame_t *read_frame; conference_obj_t *conference = vh->member_a->conference; + switch_core_session_message_t msg = { 0 }; switch_thread_rwlock_rdlock(conference->rwlock); switch_thread_rwlock_rdlock(vh->member_a->rwlock); /* Acquire locks for both sessions so the helper object and member structures don't get destroyed before we exit */ switch_core_session_read_lock(session_a); + + /* Tell the channel to request a fresh vid frame */ + msg.from = __FILE__; + msg.message_id = SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ; + switch_core_session_receive_message(session_a, &msg); vh->up = 1; while (vh->up > 0 && switch_test_flag(vh->member_a, MFLAG_RUNNING) &&