From: Paul Brossier Date: Mon, 16 Jul 2012 00:48:42 +0000 (-0600) Subject: src/io/source.c: improve new_ X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3b59629ca9bc5f697c32d3ab70c514c3b3f9951;p=aubio.git src/io/source.c: improve new_ --- diff --git a/src/io/source.c b/src/io/source.c index f8b06f20..9ed3bf7e 100644 --- a/src/io/source.c +++ b/src/io/source.c @@ -44,7 +44,9 @@ aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_si if (s->source) return s; #endif /* HAVE_SNDFILE */ #endif /* __APPLE__ */ - if (s->source == NULL) { AUBIO_FREE(s); return NULL; } + AUBIO_ERROR("failed creating aubio source with %s", uri); + AUBIO_FREE(s); + return NULL; } void aubio_source_do(aubio_source_t * s, fvec_t * data, uint_t * read) {