Changeset 2882b3f


Ignore:
Timestamp:
Feb 27, 2017, 1:33:21 AM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
48ebc3b
Parents:
a6222fc
Message:

src/io/source_wavread.c: allow closing twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_wavread.c

    ra6222fc r2882b3f  
    440440
    441441uint_t aubio_source_wavread_close (aubio_source_wavread_t * s) {
    442   if (!s->fid) {
    443     return AUBIO_FAIL;
     442  if (s->fid == NULL) {
     443    return AUBIO_OK;
    444444  }
    445445  if (fclose(s->fid)) {
Note: See TracChangeset for help on using the changeset viewer.