]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use the more reliable offset_pos counter in file position parsing for seek in scripts
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 23 Sep 2014 16:01:25 +0000 (21:01 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 23 Sep 2014 16:01:25 +0000 (21:01 +0500)
src/switch_ivr.c

index 52661e2e1eb2c7b56846669a7df7e1c50095eca9..a08bb0a40df777dc2312b9cbf37a8148484a9ab1 100644 (file)
@@ -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;