提交 8052757a authored 作者: Anthony Minessale's avatar Anthony Minessale

bah

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14831 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9e8848e3
...@@ -1295,19 +1295,19 @@ SWITCH_DECLARE(switch_status_t) CoreSession::process_callback_result(char *resul ...@@ -1295,19 +1295,19 @@ SWITCH_DECLARE(switch_status_t) CoreSession::process_callback_result(char *resul
p++; p++;
if (*p == '+' || *p == '-') { if (*p == '+' || *p == '-') {
int step; int step;
int64_t target; int32_t target;
if (!(step = atoi(p))) { if (!(step = atoi(p))) {
step = 1000; step = 1000;
} }
samps = step * (codec->implementation->samples_per_second / 1000); samps = step * (codec->implementation->samples_per_second / 1000);
target = fhp->pos + samps; target = (int32_t)fhp->pos + samps;
if (target < 0) { if (target < 0) {
target = 0; target = 0;
} }
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "seek to position %d\n", (uint32_t)target); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "seek to position %d\n", target);
switch_core_file_seek(fhp, &pos, target, SEEK_SET); switch_core_file_seek(fhp, &pos, target, SEEK_SET);
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论