From e3b59629ca9bc5f697c32d3ab70c514c3b3f9951 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 15 Jul 2012 18:48:42 -0600 Subject: [PATCH] src/io/source.c: improve new_ --- src/io/source.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.26.2