Changeset 252f585


Ignore:
Timestamp:
Dec 17, 2018, 3:10:54 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
dc72476
Parents:
56fa1e0
Message:

[io] sink_vorbis: remove useless check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_vorbis.c

    r56fa1e0 r252f585  
    181181    return AUBIO_FAIL;
    182182  s->samplerate = samplerate;
    183   if (s->samplerate != 0 && s->channels != 0)
     183  if (/* s->samplerate != 0 && */ s->channels != 0)
    184184    return aubio_sink_vorbis_open(s);
    185185  return AUBIO_OK;
     
    194194  s->channels = channels;
    195195  // automatically open when both samplerate and channels have been set
    196   if (s->samplerate != 0 && s->channels != 0) {
     196  if (s->samplerate != 0 /* && s->channels != 0 */) {
    197197    return aubio_sink_vorbis_open(s);
    198198  }
Note: See TracChangeset for help on using the changeset viewer.