meson.build: always enable Wave encoder for Snapcast

Even if the "wave_encoder" option is disabled (and no other encoder
plugins are enabled), forcefully enable the Wave encoder (if Snapcast
is enabled).

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1500
This commit is contained in:
Max Kellermann
2022-04-26 20:05:20 +02:00
parent 83572701f4
commit 85f9863e0a
4 changed files with 20 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ if libshine_dep.found()
endif
encoder_features.set('ENABLE_WAVE_ENCODER', get_option('wave_encoder'))
if get_option('wave_encoder')
if get_option('wave_encoder') or need_wave_encoder
encoder_plugins_sources += 'WaveEncoderPlugin.cxx'
endif