mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 03:57:14 +00:00
Fix regression from ignoring breaks in video rtp sessions and add a flag to force a break when needed
This commit is contained in:
1 parent
8ee46a316f
commit
d9216daedb
3 files changed
+25
-3
No files matched your search
@@ -626,9 +626,13 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
|
||||
|
||||
if (vh.up == 1) {
|
||||
vh.up = -1;
|
||||
switch_core_session_kill_channel(session_a, SWITCH_SIG_BREAK);
|
||||
switch_core_session_kill_channel(session_b, SWITCH_SIG_BREAK);
|
||||
}
|
||||
|
||||
switch_channel_set_flag(chan_a, CF_VIDEO_BREAK);
|
||||
switch_channel_set_flag(chan_b, CF_VIDEO_BREAK);
|
||||
switch_core_session_kill_channel(session_a, SWITCH_SIG_BREAK);
|
||||
switch_core_session_kill_channel(session_b, SWITCH_SIG_BREAK);
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session_a), SWITCH_LOG_DEBUG, "Ending video thread.\n");
|
||||
switch_thread_join(&st, vid_thread);
|
||||
switch_channel_clear_flag(chan_a, CF_NOT_READY);
|
||||
|
||||
Reference in new issue
Block a user