mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-5211 --resolve
This commit is contained in:
parent
fedfb67b07
commit
cf6d2c5003
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user