projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
776a5d3
)
src/io/source.c: improve new_
author
Paul Brossier
<piem@piem.org>
Mon, 16 Jul 2012 00:48:42 +0000
(18:48 -0600)
committer
Paul Brossier
<piem@piem.org>
Mon, 16 Jul 2012 00:48:42 +0000
(18:48 -0600)
src/io/source.c
patch
|
blob
|
history
diff --git
a/src/io/source.c
b/src/io/source.c
index
f8b06f2
..
9ed3bf7
100644
(file)
--- 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) {