From: Anthony Minessale Date: Wed, 8 Apr 2015 16:33:10 +0000 (-0500) Subject: FS-7500: don't send blank vid on sleep unless there is nothing else going on X-Git-Tag: v1.6.2~614^2~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01c0a1d44d693a7dd714220e5be9bc6b900dddbd;p=thirdparty%2Ffreeswitch.git FS-7500: don't send blank vid on sleep unless there is nothing else going on --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index da9626a9e5..0efb43b04c 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -4805,7 +4805,8 @@ static void *SWITCH_THREAD_FUNC video_helper_thread(switch_thread_t *thread, voi send_blank = 1; } - if (send_blank || switch_channel_test_flag(channel, CF_VIDEO_BLANK)) { + if ((send_blank || switch_channel_test_flag(channel, CF_VIDEO_BLANK)) && + !session->video_read_callback && !switch_channel_test_flag(session->channel, CF_BRIDGED)) { fr.img = blank_img; switch_yield(100000); switch_core_session_write_video_frame(session, &fr, SWITCH_IO_FLAG_NONE, SWITCH_IO_FLAG_FORCE);