From: Anthony Minessale Date: Wed, 11 Mar 2015 23:33:05 +0000 (-0500) Subject: FS-7500: move flags up X-Git-Tag: v1.6.2~614^2~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c6a1479df889c6e131c2ef0d93d34b6858e307;p=thirdparty%2Ffreeswitch.git FS-7500: move flags up --- 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);