musikr: fix stream seeking
Foolishly changed offset sign in seek from end.
This commit is contained in:
@@ -43,7 +43,7 @@ internal class NativeInputStream(fis: FileInputStream) {
|
||||
}
|
||||
|
||||
fun seekFromEnd(offset: Long) {
|
||||
channel.position(channel.size() - offset)
|
||||
channel.position(channel.size() + offset)
|
||||
}
|
||||
|
||||
fun tell() = channel.position()
|
||||
|
||||
Reference in New Issue
Block a user