提交 1fc018f5 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5211 --resolve

上级 048a0eb8
...@@ -6179,7 +6179,7 @@ static switch_status_t conf_api_sub_file_seek(conference_obj_t *conference, swit ...@@ -6179,7 +6179,7 @@ static switch_status_t conf_api_sub_file_seek(conference_obj_t *conference, swit
step = 1000; step = 1000;
} }
samps = step * (conference->rate / 1000); samps = step * (conference->fnode->fh.native_rate / 1000);
target = (int32_t)conference->fnode->fh.pos + samps; target = (int32_t)conference->fnode->fh.pos + samps;
if (target < 0) { if (target < 0) {
...@@ -6190,7 +6190,7 @@ static switch_status_t conf_api_sub_file_seek(conference_obj_t *conference, swit ...@@ -6190,7 +6190,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); switch_core_file_seek(&conference->fnode->fh, &pos, target, SEEK_SET);
} else { } 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); stream->write_function(stream, "+OK seek to position %d\n", samps);
switch_core_file_seek(&conference->fnode->fh, &pos, samps, SEEK_SET); switch_core_file_seek(&conference->fnode->fh, &pos, samps, SEEK_SET);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论