]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9863: [] video_width/video_height unset with playback application #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 19 Dec 2016 23:53:41 +0000 (17:53 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 19 Dec 2016 23:53:50 +0000 (17:53 -0600)
src/switch_core_media.c

index 4175de57aaa8166c4c38ea9cc04c22364ced78e6..c4e9b66b045dc5576c75eebd15596175c8c3ecdc 100644 (file)
@@ -5899,10 +5899,8 @@ static void *SWITCH_THREAD_FUNC video_write_thread(switch_thread_t *thread, void
        switch_core_session_get_partner(session, &b_session);
 
        switch_channel_set_flag(session->channel, CF_VIDEO_WRITING);
-       switch_channel_set_flag(session->channel, CF_VIDEO_PAUSE_READ);
        
        if (b_session) {
-               switch_channel_set_flag(b_session->channel, CF_VIDEO_PAUSE_READ);
                switch_channel_set_flag(b_session->channel, CF_VIDEO_BLANK);
        }
 
@@ -5960,12 +5958,10 @@ static void *SWITCH_THREAD_FUNC video_write_thread(switch_thread_t *thread, void
        switch_core_session_rwunlock(session);
 
        if (b_session) {
-               switch_channel_clear_flag(b_session->channel, CF_VIDEO_PAUSE_READ);
                switch_channel_clear_flag(b_session->channel, CF_VIDEO_BLANK);
                switch_core_session_rwunlock(b_session);
        }
 
-       switch_channel_clear_flag(session->channel, CF_VIDEO_PAUSE_READ);
        switch_channel_clear_flag(session->channel, CF_VIDEO_WRITING);
        smh->video_write_thread_running = 0;