From dc2aa07b44304b27e0fda125e740675391ff6344 Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Sat, 21 Aug 2021 17:50:47 +0200 Subject: [PATCH] mpg123 stream fix --- src/audio/oal/stream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/audio/oal/stream.cpp b/src/audio/oal/stream.cpp index 87ddc0d0..7f3f067e 100644 --- a/src/audio/oal/stream.cpp +++ b/src/audio/oal/stream.cpp @@ -653,7 +653,8 @@ static ssize_t mpg123_read_replacement(void* handle, void* data, size_t size) static off_t mpg123_seek_replacement(void* handle, off_t offset, int whence) { - return fseek((FILE*)handle, offset, whence); + fseek((FILE*)handle, offset, whence); + return ftell((FILE*)handle); } class CMP3File : public IDecoder