aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter/normalize_filter_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/filter/normalize_filter_plugin.c')
-rw-r--r--src/filter/normalize_filter_plugin.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/filter/normalize_filter_plugin.c b/src/filter/normalize_filter_plugin.c
index 2694646ee..4a8bde51d 100644
--- a/src/filter/normalize_filter_plugin.c
+++ b/src/filter/normalize_filter_plugin.c
@@ -61,23 +61,13 @@ normalize_filter_finish(struct filter *filter)
static const struct audio_format *
normalize_filter_open(struct filter *_filter,
- const struct audio_format *audio_format,
- GError **error_r)
+ struct audio_format *audio_format,
+ G_GNUC_UNUSED GError **error_r)
{
struct normalize_filter *filter = (struct normalize_filter *)_filter;
- if (audio_format->format != SAMPLE_FORMAT_S16) {
- g_set_error(error_r, normalize_quark(), 0,
- "Unsupported audio format");
- return false;
- }
-
- if (audio_format->reverse_endian) {
- g_set_error(error_r, normalize_quark(), 0,
- "Normalize for reverse endian "
- "samples is not implemented");
- return false;
- }
+ audio_format->format = SAMPLE_FORMAT_S16;
+ audio_format->reverse_endian = false;
filter->compressor = Compressor_new(0);