Changeset 294aff6 for tests/src


Ignore:
Timestamp:
Dec 5, 2013, 2:06:27 PM (11 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, pitchshift, sampler, timestretch, yinfft+
Children:
52b5f34, 75eb182
Parents:
2d88f41a
Message:

tests/src/io/test-source_sndfile.c: really abort on error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/io/test-source_sndfile.c

    r2d88f41a r294aff6  
    2727  fvec_t *vec = new_fvec(hop_size);
    2828  aubio_source_sndfile_t * s = new_aubio_source_sndfile(source_path, samplerate, hop_size);
     29  if (!s) { err = 1; goto beach; }
    2930  if (samplerate == 0 ) samplerate = aubio_source_sndfile_get_samplerate(s);
    30 
    31   if (!s) { err = 1; goto beach; }
    3231
    3332  do {
     
    3736  } while ( read == hop_size );
    3837
     38  del_aubio_source_sndfile (s);
    3939beach:
    40   del_aubio_source_sndfile (s);
    4140  del_fvec (vec);
    4241#else
Note: See TracChangeset for help on using the changeset viewer.