Changeset cc469dd for src


Ignore:
Timestamp:
Feb 26, 2017, 11:38:49 PM (8 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:
f1f2e7e
Parents:
2296ffb
Message:

src/io/source_wavread.c: avoid seeking in closed file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_wavread.c

    r2296ffb rcc469dd  
    408408uint_t aubio_source_wavread_seek (aubio_source_wavread_t * s, uint_t pos) {
    409409  uint_t ret = 0;
     410  if (s->fid == NULL) {
     411    AUBIO_ERR("source_wavread: could not seek %s (file not opened?)\n", s->path, pos);
     412    return AUBIO_FAIL;
     413  }
    410414  if ((sint_t)pos < 0) {
    411415    AUBIO_ERR("source_wavread: could not seek %s at %d (seeking position should be >= 0)\n", s->path, pos);
Note: See TracChangeset for help on using the changeset viewer.