From cf6d2c500317b314b18b76a015df2e2d96ab9909 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 12 Nov 2013 10:22:58 -0600 Subject: [PATCH] FS-5211 --resolve --- src/mod/applications/mod_conference/mod_conference.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index bc04e21d65..b90090e5c1 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -5664,7 +5664,7 @@ static switch_status_t conf_api_sub_file_seek(conference_obj_t *conference, swit step = 1000; } - samps = step * (conference->rate / 1000); + samps = step * (conference->fnode->fh.native_rate / 1000); target = (int32_t)conference->fnode->fh.pos + samps; if (target < 0) { @@ -5675,7 +5675,7 @@ static switch_status_t conf_api_sub_file_seek(conference_obj_t *conference, swit switch_core_file_seek(&conference->fnode->fh, &pos, target, SEEK_SET); } else { - samps = switch_atoui(argv[2]) * (conference->rate / 1000); + samps = switch_atoui(argv[2]) * (conference->fnode->fh.native_rate / 1000); stream->write_function(stream, "+OK seek to position %d\n", samps); switch_core_file_seek(&conference->fnode->fh, &pos, samps, SEEK_SET); }