From 35c6a1479df889c6e131c2ef0d93d34b6858e307 Mon Sep 17 00:00:00 2001 From: Anthony Minessale <anthm@freeswitch.org> Date: Wed, 11 Mar 2015 18:33:05 -0500 Subject: [PATCH] FS-7500: move flags up --- src/mod/applications/mod_fsv/mod_fsv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_fsv/mod_fsv.c b/src/mod/applications/mod_fsv/mod_fsv.c index 882992b9ce..bc16bedca0 100644 --- a/src/mod/applications/mod_fsv/mod_fsv.c +++ b/src/mod/applications/mod_fsv/mod_fsv.c @@ -670,6 +670,9 @@ static void decode_video_thread(switch_core_session_t *session, void *obj) goto done; } + switch_channel_set_flag(channel, CF_VIDEO_DEBUG_READ); + switch_channel_set_flag(channel, CF_VIDEO_DEBUG_WRITE); + while (switch_channel_ready(channel)) { switch_status_t status = switch_core_session_read_video_frame(session, &frame, SWITCH_IO_FLAG_NONE, 0); @@ -731,8 +734,6 @@ SWITCH_STANDARD_APP(decode_video_function) switch_core_session_request_video_refresh(session); switch_channel_set_flag(channel, CF_VIDEO_DECODED_READ); - switch_channel_set_flag(channel, CF_VIDEO_DEBUG_READ); - switch_channel_set_flag(channel, CF_VIDEO_DEBUG_WRITE); switch_core_media_start_video_function(session, decode_video_thread, &max_pictures);