ref: e3b59629ca9bc5f697c32d3ab70c514c3b3f9951
parent: 776a5d338831c2dc82a5688a2ef940bbfed358f0
author: Paul Brossier <piem@piem.org>
date: Sun Jul 15 14:48:42 EDT 2012
src/io/source.c: improve new_
--- a/src/io/source.c
+++ b/src/io/source.c
@@ -44,7 +44,9 @@
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) {