]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
req vid refresh in fsv
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Jan 2012 20:08:55 +0000 (14:08 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Jan 2012 20:08:55 +0000 (14:08 -0600)
src/mod/applications/mod_fsv/mod_fsv.c

index c75600ea14d02585508b7401c81282c4e2334bb6..6f37776f92a256a16e395438bff9446d88fc7119 100644 (file)
@@ -111,9 +111,15 @@ SWITCH_STANDARD_APP(record_fsv_function)
        switch_codec_implementation_t read_impl = { 0 };
        switch_dtmf_t dtmf = { 0 };
        int count = 0, sanity = 30;
+       switch_core_session_message_t msg = { 0 };
+
+       /* Tell the channel to request a fresh vid frame */
+       msg.from = __FILE__;
+       msg.message_id = SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ;
 
        switch_core_session_get_read_impl(session, &read_impl);
        switch_channel_answer(channel);
+       switch_core_session_receive_message(session, &msg);
 
        switch_channel_set_variable(channel, SWITCH_PLAYBACK_TERMINATOR_USED, "");
 
@@ -290,6 +296,13 @@ SWITCH_STANDARD_APP(play_fsv_function)
        switch_dtmf_t dtmf = { 0 };
        switch_frame_t *read_frame;
        switch_codec_implementation_t read_impl = { 0 };
+       switch_core_session_message_t msg = { 0 };
+
+       /* 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, &msg);
 
        switch_core_session_get_read_impl(session, &read_impl);