提交 47e6dfbb authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5242

上级 aca9257f
......@@ -893,7 +893,12 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in
switch_buffer_zero(context->audio_buffer);
*cur_sample = mpg123_seek(context->mh, (off_t) samples, whence);
return *cur_sample >= 0 ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE;
if (*cur_sample >= 0) {
handle->pos = *cur_sample;
return SWITCH_STATUS_SUCCESS;
}
return SWITCH_STATUS_FALSE;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论