From 01c0a1d44d693a7dd714220e5be9bc6b900dddbd Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 8 Apr 2015 11:33:10 -0500 Subject: [PATCH] FS-7500: don't send blank vid on sleep unless there is nothing else going on --- src/switch_core_media.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);