From 252f58538ca8cab5e69b389a9e9d1f81cff272d9 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 17 Dec 2018 15:10:54 +0100 Subject: [PATCH] [io] sink_vorbis: remove useless check --- src/io/sink_vorbis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/sink_vorbis.c b/src/io/sink_vorbis.c index f401017e..260062fa 100644 --- a/src/io/sink_vorbis.c +++ b/src/io/sink_vorbis.c @@ -180,7 +180,7 @@ uint_t aubio_sink_vorbis_preset_samplerate(aubio_sink_vorbis_t *s, if (aubio_io_validate_samplerate("sink_vorbis", s->path, samplerate)) return AUBIO_FAIL; s->samplerate = samplerate; - if (s->samplerate != 0 && s->channels != 0) + if (/* s->samplerate != 0 && */ s->channels != 0) return aubio_sink_vorbis_open(s); return AUBIO_OK; } @@ -193,7 +193,7 @@ uint_t aubio_sink_vorbis_preset_channels(aubio_sink_vorbis_t *s, } s->channels = channels; // automatically open when both samplerate and channels have been set - if (s->samplerate != 0 && s->channels != 0) { + if (s->samplerate != 0 /* && s->channels != 0 */) { return aubio_sink_vorbis_open(s); } return AUBIO_OK; -- 2.11.0