mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
only run plc on mono channels
This commit is contained in:
parent
33541dcfd9
commit
4e5ecdf995
@ -576,7 +576,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
|
||||
|
||||
}
|
||||
|
||||
if (status == SWITCH_STATUS_SUCCESS) {
|
||||
if (status == SWITCH_STATUS_SUCCESS && session->read_impl.number_of_channels == 1) {
|
||||
if ((switch_channel_test_flag(session->channel, CF_JITTERBUFFER_PLC) || switch_channel_test_flag(session->channel, CF_CNG_PLC))
|
||||
&& !session->plc) {
|
||||
session->plc = plc_init(NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user