]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7500: move flags up
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 11 Mar 2015 23:33:05 +0000 (18:33 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:11 +0000 (12:47 -0500)
src/mod/applications/mod_fsv/mod_fsv.c

index 882992b9ce02dc8b959afdaaf3abc772f4795a59..bc16bedca0f9074aabd4270ed5a3fffa7898ff5c 100644 (file)
@@ -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);