mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
drop rtp frame that was already replaced with a cng frame
This commit is contained in:
1 parent
751e0291ee
commit
34a0ca5096
4 files changed
+22
-3
No files matched your search
@@ -341,7 +341,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
|
||||
}
|
||||
|
||||
if (status == SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_channel_test_flag(session->channel, CF_JITTERBUFFER) && !session->plc) {
|
||||
if ((switch_channel_test_flag(session->channel, CF_JITTERBUFFER) || switch_channel_test_flag(session->channel, CF_CNG_PLC))
|
||||
&& !session->plc) {
|
||||
session->plc = plc_init(NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user