Commit fcda380f authored by David Reid's avatar David Reid

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.
parent 17189c2b
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment