drop rtp frame that was already replaced with a cng frame

This commit is contained in:
Anthony Minessale committed 2010-12-22 20:38:57 -06:00
1 parent 751e0291ee
commit 34a0ca5096
4 files changed
+22 -3

No files matched your search

+2 -1
View File
@@ -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);
}