Skip to content

Commit a810cb2

Browse files
committed
music_opus.c: fix a typo. (found with -Wall in CFLAGS).
also update changelog to mention opus support.
1 parent 601807a commit a810cb2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
2.0.3:
22
Ozkan Sezer - Sun, 07 Oct 2018 08:50:02
33
* Fixed mp3 mad decoder to skip tags, which otherwise would lead to crashes
4+
Ozkan Sezer - Fri, 15 Jun 2018 05:32:56
5+
* Added support for Opus music playback using opusfile library
46
Sam Lantinga - Thu, Mar 1, 2018 9:06:58 AM
57
* Fixed regression where Mix_Init() would return 0 for available music formats
68

music_opus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int sdl_read_func(void *datasource, unsigned char *ptr, int size)
140140
return (int)SDL_RWread((SDL_RWops*)datasource, ptr, 1, size);
141141
}
142142

143-
static int sdl_seek_func(void *datasource, ogg_int64_t offset, int whence)
143+
static int sdl_seek_func(void *datasource, opus_int64 offset, int whence)
144144
{
145145
return (SDL_RWseek((SDL_RWops*)datasource, offset, whence) < 0)? -1 : 0;
146146
}

0 commit comments

Comments
 (0)