Skip to content

Commit

Permalink
Correctly return a value from modplug_init(), and correctly check it,…
Browse files Browse the repository at this point in the history
… too.

Patch by Ozkan Sezer.

  Fixes Bugzilla #941.
  • Loading branch information
icculus committed Feb 4, 2010
1 parent f589f66 commit 0a70201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion music.c
Expand Up @@ -321,7 +321,7 @@ int open_music(SDL_AudioSpec *mixer)
}
#endif
#ifdef MODPLUG_MUSIC
if ( modplug_init(mixer) < 0 ) {
if ( modplug_init(mixer) == 0 ) {
add_music_decoder("MODPLUG");
}
#endif
Expand Down
1 change: 1 addition & 0 deletions music_modplug.c
Expand Up @@ -60,6 +60,7 @@ int modplug_init(SDL_AudioSpec *spec)
settings.mSurroundDelay=10;
settings.mLoopCount=0;
ModPlug_SetSettings(&settings);
return 0;
}

/* Uninitialize the music players */
Expand Down

0 comments on commit 0a70201

Please sign in to comment.