aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_decoder.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-02 09:42:16 +0100
committerMax Kellermann <max@duempel.org>2009-03-02 09:42:16 +0100
commitb7bfa24f22a3a5a7709ce425ffc84bd4bb64be08 (patch)
tree661eef7a3aa2d5d4b153d23b5703c35502bc2262 /test/run_decoder.c
parent0579b6ed27a995d6c700f3684b023fb2fda7e616 (diff)
downloadmpd-b7bfa24f22a3a5a7709ce425ffc84bd4bb64be08.tar.gz
mpd-b7bfa24f22a3a5a7709ce425ffc84bd4bb64be08.tar.xz
mpd-b7bfa24f22a3a5a7709ce425ffc84bd4bb64be08.zip
pcm_volume: return bool
Don't abort MPD when a sample format is not supported by pcm_volume().
Diffstat (limited to '')
-rw-r--r--test/run_decoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/run_decoder.c b/test/run_decoder.c
index 8d11494c7..6bd331b02 100644
--- a/test/run_decoder.c
+++ b/test/run_decoder.c
@@ -30,11 +30,12 @@
/**
* No-op dummy.
*/
-void
+bool
pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
G_GNUC_UNUSED const struct audio_format *format,
G_GNUC_UNUSED int volume)
{
+ return true;
}
struct decoder {