aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-22 15:56:50 +0200
committerMax Kellermann <max@duempel.org>2009-07-22 15:56:50 +0200
commit92779504415e00c2ab5a15dd28ffaf3f067f2ead (patch)
tree1b51096d7fa3bad866fde42c39f1edf64fb4cc48 /src
parent44c97a8f6d41a31cb87d2ec2fdae1a707d0dc7dc (diff)
downloadmpd-92779504415e00c2ab5a15dd28ffaf3f067f2ead.tar.gz
mpd-92779504415e00c2ab5a15dd28ffaf3f067f2ead.tar.xz
mpd-92779504415e00c2ab5a15dd28ffaf3f067f2ead.zip
filter/volume: check the flag audio_format.reverse_endian
The volume plugin does not work for reverse_endian samples.
Diffstat (limited to '')
-rw-r--r--src/filter/volume_filter_plugin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/filter/volume_filter_plugin.c b/src/filter/volume_filter_plugin.c
index 039619917..298ca2f36 100644
--- a/src/filter/volume_filter_plugin.c
+++ b/src/filter/volume_filter_plugin.c
@@ -81,6 +81,13 @@ volume_filter_open(struct filter *_filter,
return false;
}
+ if (audio_format->reverse_endian) {
+ g_set_error(error_r, volume_quark(), 0,
+ "Software volume for reverse endian "
+ "samples is not implemented");
+ return false;
+ }
+
filter->audio_format = *audio_format;
pcm_buffer_init(&filter->buffer);