From 4e9f463bb65749740638b10a8fa213d3001a7cbd Mon Sep 17 00:00:00 2001 From: latex Date: Fri, 12 May 2023 00:25:08 +0200 Subject: [PATCH] reorder ffmpeg to be lower priority than gme This should prevent ffmpeg from taking priority over the gme plugin. The ffmpeg plugin is more buggy than gme. One of the prominent bugs of preferring ffmpeg over gme is that ffmpeg cannot seek SAP files while gme can. This should prevent that from happening. --- src/decoder/DecoderList.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decoder/DecoderList.cxx b/src/decoder/DecoderList.cxx index 0e968403c..dac240ab4 100644 --- a/src/decoder/DecoderList.cxx +++ b/src/decoder/DecoderList.cxx @@ -96,11 +96,11 @@ constinit const struct DecoderPlugin *const decoder_plugins[] = { #ifdef ENABLE_ADPLUG &adplug_decoder_plugin, #endif -#ifdef ENABLE_FFMPEG - &ffmpeg_decoder_plugin, -#endif #ifdef ENABLE_GME &gme_decoder_plugin, +#endif +#ifdef ENABLE_FFMPEG + &ffmpeg_decoder_plugin, #endif &pcm_decoder_plugin, nullptr