Changeset 23bf001 for tests/src/io


Ignore:
Timestamp:
Dec 5, 2013, 2:01:18 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:
6abb4de
Parents:
d3b9fe4
Message:

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

File:
1 edited

Legend:

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

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