From 03d319bb87d8533aaa3021c1512adcd1d98c14e8 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 3 May 2022 20:11:10 +0300
Subject: [PATCH] music_ogg: fix sdl_seek_func() return value.
---
music_ogg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/music_ogg.c b/music_ogg.c
index 99477329..a90ce3e0 100644
--- a/music_ogg.c
+++ b/music_ogg.c
@@ -56,7 +56,7 @@ static size_t sdl_read_func(void *ptr, size_t size, size_t nmemb, void *datasour
static int sdl_seek_func(void *datasource, ogg_int64_t offset, int whence)
{
- return SDL_RWseek((SDL_RWops*)datasource, (int)offset, whence);
+ return (SDL_RWseek((SDL_RWops*)datasource, (int)offset, whence) < 0)? -1 : 0;
}
static long sdl_tell_func(void *datasource)