musikr: fix stream seeking
Foolishly changed offset sign in seek from end.
This commit is contained in:
parent
8c3750778f
commit
0e34a28dfb
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ internal class NativeInputStream(fis: FileInputStream) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun seekFromEnd(offset: Long) {
|
fun seekFromEnd(offset: Long) {
|
||||||
channel.position(channel.size() - offset)
|
channel.position(channel.size() + offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun tell() = channel.position()
|
fun tell() = channel.position()
|
||||||
|
|
Loading…
Reference in a new issue