Skip to content

Commit

Permalink
music_opus.c: fix a typo. (found with -Wall in CFLAGS).
Browse files Browse the repository at this point in the history
also update changelog to mention opus support.
  • Loading branch information
sezero committed Oct 8, 2018
1 parent 15eb0e0 commit adc58b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
@@ -1,6 +1,8 @@
2.0.3:
Ozkan Sezer - Sun, 07 Oct 2018 08:50:02
* Fixed mp3 mad decoder to skip tags, which otherwise would lead to crashes
Ozkan Sezer - Fri, 15 Jun 2018 05:32:56
* Added support for Opus music playback using opusfile library
Sam Lantinga - Thu, Mar 1, 2018 9:06:58 AM
* Fixed regression where Mix_Init() would return 0 for available music formats

Expand Down
2 changes: 1 addition & 1 deletion music_opus.c
Expand Up @@ -140,7 +140,7 @@ static int sdl_read_func(void *datasource, unsigned char *ptr, int size)
return (int)SDL_RWread((SDL_RWops*)datasource, ptr, 1, size);
}

static int sdl_seek_func(void *datasource, ogg_int64_t offset, int whence)
static int sdl_seek_func(void *datasource, opus_int64 offset, int whence)
{
return (SDL_RWseek((SDL_RWops*)datasource, offset, whence) < 0)? -1 : 0;
}
Expand Down

0 comments on commit adc58b6

Please sign in to comment.