Give Vorbis a higher priority over MP3.

The reason for this is that the MP3 decoder does not currently have a
good way of determining if the stream is actually a valid MP3 stream.
This commit is contained in:
David Reid
2018-04-27 21:33:47 +10:00
parent 17189c2b9c
commit fcda380f85
+4 -4
View File
@@ -20739,17 +20739,17 @@ mal_result mal_decoder_init(mal_decoder_read_proc onRead, mal_decoder_seek_proc
}
}
#endif
#ifdef MAL_HAS_MP3
#ifdef MAL_HAS_VORBIS
if (result != MAL_SUCCESS) {
result = mal_decoder_init_mp3__internal(&config, pDecoder);
result = mal_decoder_init_vorbis__internal(&config, pDecoder);
if (result != MAL_SUCCESS) {
onSeek(pDecoder, 0, mal_seek_origin_start);
}
}
#endif
#ifdef MAL_HAS_VORBIS
#ifdef MAL_HAS_MP3
if (result != MAL_SUCCESS) {
result = mal_decoder_init_vorbis__internal(&config, pDecoder);
result = mal_decoder_init_mp3__internal(&config, pDecoder);
if (result != MAL_SUCCESS) {
onSeek(pDecoder, 0, mal_seek_origin_start);
}