mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 06:18:35 +00:00
add new flag to frames to denote pass thru frames that are not audio
This commit is contained in:
1 parent
bcd1e14711
commit
cb9abe0268
3 files changed
+21
-1
No files matched your search
@@ -265,6 +265,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
|
||||
do_bugs = 1;
|
||||
need_codec = 1;
|
||||
}
|
||||
|
||||
if (((*frame)->flags & SFF_NOT_AUDIO)) {
|
||||
do_resample = 0;
|
||||
do_bugs = 0;
|
||||
need_codec = 0;
|
||||
}
|
||||
|
||||
|
||||
if (switch_test_flag(session, SSF_READ_TRANSCODE) && !need_codec && switch_core_codec_ready(session->read_codec)) {
|
||||
switch_core_session_t *other_session;
|
||||
@@ -792,6 +799,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
|
||||
do_resample = TRUE;
|
||||
}
|
||||
|
||||
|
||||
if ((frame->flags & SFF_NOT_AUDIO)) {
|
||||
do_resample = 0;
|
||||
do_bugs = 0;
|
||||
need_codec = 0;
|
||||
}
|
||||
|
||||
if (switch_test_flag(session, SSF_WRITE_TRANSCODE) && !need_codec && switch_core_codec_ready(session->write_codec)) {
|
||||
switch_core_session_t *other_session;
|
||||
const char *uuid = switch_channel_get_variable(switch_core_session_get_channel(session), SWITCH_SIGNAL_BOND_VARIABLE);
|
||||
|
||||
Reference in new issue
Block a user