From: Anthony Minessale Date: Tue, 23 Sep 2014 16:01:25 +0000 (+0500) Subject: use the more reliable offset_pos counter in file position parsing for seek in scripts X-Git-Tag: v1.4.9~4^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8d68668994f5c245a0522295da1c8d9dcdbc49e;p=thirdparty%2Ffreeswitch.git use the more reliable offset_pos counter in file position parsing for seek in scripts --- diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 52661e2e1e..a08bb0a40d 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -3434,7 +3434,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_process_fh(switch_core_session_t *ses } samps = step * (fhp->native_rate / 1000); - target = (int32_t)fhp->pos + samps; + target = (int32_t)fhp->offset_pos + samps; if (target < 0) { target = 0;