mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
reset offset_pos on seek to 0
This commit is contained in:
parent
95a18a9e1a
commit
e375d1d2f2
@ -445,15 +445,12 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_seek(switch_file_handle_t *fh,
|
|||||||
switch_set_flag(fh, SWITCH_FILE_SEEK);
|
switch_set_flag(fh, SWITCH_FILE_SEEK);
|
||||||
status = fh->file_interface->file_seek(fh, cur_pos, samples, whence);
|
status = fh->file_interface->file_seek(fh, cur_pos, samples, whence);
|
||||||
|
|
||||||
if (samples) {
|
fh->offset_pos = *cur_pos;
|
||||||
fh->offset_pos = *cur_pos;
|
|
||||||
|
|
||||||
if (switch_test_flag(fh, SWITCH_FILE_FLAG_WRITE)) {
|
if (switch_test_flag(fh, SWITCH_FILE_FLAG_WRITE)) {
|
||||||
fh->samples_out = *cur_pos;
|
fh->samples_out = *cur_pos;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user