mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
use the more reliable offset_pos counter in file position parsing for seek in scripts
This commit is contained in:
1 parent
59e71341db
commit
e8d6866899
1 file changed
+1
-1
+1
-1
@@ -3434,7 +3434,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_process_fh(switch_core_session_t *ses
|
|||||||
}
|
}
|
||||||
|
|
||||||
samps = step * (fhp->native_rate / 1000);
|
samps = step * (fhp->native_rate / 1000);
|
||||||
target = (int32_t)fhp->pos + samps;
|
target = (int32_t)fhp->offset_pos + samps;
|
||||||
|
|
||||||
if (target < 0) {
|
if (target < 0) {
|
||||||
target = 0;
|
target = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user