mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 21:38:34 +00:00
FS-7679 #resolve #comment please test, also added some cases of calling a file with no video as well
This commit is contained in:
1 parent
5efc9714ee
commit
6a102816f6
4 files changed
+16
-2
No files matched your search
@@ -4967,7 +4967,7 @@ static void *SWITCH_THREAD_FUNC video_helper_thread(switch_thread_t *thread, voi
|
||||
|
||||
//if (!smh->video_write_fh || !switch_channel_test_flag(channel, CF_VIDEO_READY)) {
|
||||
status = switch_core_session_read_video_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0);
|
||||
|
||||
|
||||
if (!SWITCH_READ_ACCEPTABLE(status)) {
|
||||
switch_cond_next();
|
||||
continue;
|
||||
@@ -5014,7 +5014,7 @@ static void *SWITCH_THREAD_FUNC video_helper_thread(switch_thread_t *thread, voi
|
||||
} else if (switch_channel_test_flag(channel, CF_VIDEO_DECODED_READ)) {
|
||||
send_blank = 1;
|
||||
}
|
||||
|
||||
send_blank = 1;
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user