shithub: aubio

Download patch

ref: 252f58538ca8cab5e69b389a9e9d1f81cff272d9
parent: 56fa1e0abf7fb78a68c4d722b6afef325b6d28f6
author: Paul Brossier <piem@piem.org>
date: Mon Dec 17 10:10:54 EST 2018

[io] sink_vorbis: remove useless check

--- a/src/io/sink_vorbis.c
+++ b/src/io/sink_vorbis.c
@@ -180,7 +180,7 @@
   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 @@
   }
   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;