From c779fc37eb2e1f776c592363426104c956939b1c Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Tue, 26 Apr 2022 16:45:34 +0200
Subject: [PATCH] output/shout: declare minimum version 2.4.0

This version was released 7 years ago, and it's reasonable to require
at least this version.
---
 NEWS                           | 2 ++
 src/output/plugins/meson.build | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 452fdb85c..4572e675b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 ver 0.23.7 (not yet released)
 * decoder
   - opus: fix missing song length on high-latency files
+* output
+  - shout: require at least libshout 2.4.0
 * mixer
   - software: update volume of disabled outputs
 * support libiconv
diff --git a/src/output/plugins/meson.build b/src/output/plugins/meson.build
index a50146021..caac2c949 100644
--- a/src/output/plugins/meson.build
+++ b/src/output/plugins/meson.build
@@ -99,7 +99,7 @@ if get_option('recorder')
   need_encoder = true
 endif
 
-libshout_dep = dependency('shout', required: get_option('shout'))
+libshout_dep = dependency('shout', version: '>= 2.4.0', required: get_option('shout'))
 output_features.set('HAVE_SHOUT', libshout_dep.found())
 if libshout_dep.found()
   output_plugins_sources += 'ShoutOutputPlugin.cxx'