|
@@ -1440,18 +1440,18 @@ Music LoadMusicStream(const char *fileName)
|
|
free(music);
|
|
free(music);
|
|
music = NULL;
|
|
music = NULL;
|
|
|
|
|
|
- if ((*music)->ctxType == MUSIC_AUDIO_OGG) stb_vorbis_close(music->ctxOgg);
|
|
|
|
|
|
+ if (music->ctxType == MUSIC_AUDIO_OGG) stb_vorbis_close(music->ctxOgg);
|
|
#if defined(SUPPORT_FILEFORMAT_FLAC)
|
|
#if defined(SUPPORT_FILEFORMAT_FLAC)
|
|
- else if ((*music)->ctxType == MUSIC_AUDIO_FLAC) drflac_free(music->ctxFlac);
|
|
|
|
|
|
+ else if (music->ctxType == MUSIC_AUDIO_FLAC) drflac_free(music->ctxFlac);
|
|
#endif
|
|
#endif
|
|
#if defined(SUPPORT_FILEFORMAT_MP3)
|
|
#if defined(SUPPORT_FILEFORMAT_MP3)
|
|
- else if ((*music)->ctxType == MUSIC_AUDIO_MP3) drmp3_uninit(&music->ctxMp3);
|
|
|
|
|
|
+ else if (music->ctxType == MUSIC_AUDIO_MP3) drmp3_uninit(&music->ctxMp3);
|
|
#endif
|
|
#endif
|
|
#if defined(SUPPORT_FILEFORMAT_XM)
|
|
#if defined(SUPPORT_FILEFORMAT_XM)
|
|
- else if ((*music)->ctxType == MUSIC_MODULE_XM) jar_xm_free_context(music->ctxXm);
|
|
|
|
|
|
+ else if (music->ctxType == MUSIC_MODULE_XM) jar_xm_free_context(music->ctxXm);
|
|
#endif
|
|
#endif
|
|
#if defined(SUPPORT_FILEFORMAT_MOD)
|
|
#if defined(SUPPORT_FILEFORMAT_MOD)
|
|
- else if ((*music)->ctxType == MUSIC_MODULE_MOD) jar_mod_unload(&music->ctxMod);
|
|
|
|
|
|
+ else if (music->ctxType == MUSIC_MODULE_MOD) jar_mod_unload(&music->ctxMod);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
TraceLog(LOG_WARNING, "[%s] Music file could not be opened", fileName);
|
|
TraceLog(LOG_WARNING, "[%s] Music file could not be opened", fileName);
|