mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
fix compiler error
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9283 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1082866112
commit
dafff282da
@ -421,7 +421,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t
|
|||||||
|
|
||||||
olen = mlen;
|
olen = mlen;
|
||||||
if (ringback.fh->resampler) {
|
if (ringback.fh->resampler) {
|
||||||
olen *= ringback.fh->resampler->rfactor;
|
olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor);
|
||||||
}
|
}
|
||||||
switch_core_file_read(ringback.fh, write_frame.data, &olen);
|
switch_core_file_read(ringback.fh, write_frame.data, &olen);
|
||||||
|
|
||||||
@ -1220,7 +1220,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
|
|
||||||
olen = mlen;
|
olen = mlen;
|
||||||
if (ringback.fh->resampler) {
|
if (ringback.fh->resampler) {
|
||||||
olen *= ringback.fh->resampler->rfactor;
|
olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_core_file_read(ringback.fh, write_frame.data, &olen);
|
switch_core_file_read(ringback.fh, write_frame.data, &olen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user