projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8fcc9a
)
src/notes/notes.c: bail out if pitch creation failed (see #188)
author
Paul Brossier
<piem@piem.org>
Mon, 6 Aug 2018 12:03:48 +0000
(14:03 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 6 Aug 2018 12:03:48 +0000
(14:03 +0200)
src/notes/notes.c
patch
|
blob
|
history
diff --git
a/src/notes/notes.c
b/src/notes/notes.c
index
f6b7d56
..
343e5a0
100644
(file)
--- a/
src/notes/notes.c
+++ b/
src/notes/notes.c
@@
-83,6
+83,7
@@
aubio_notes_t * new_aubio_notes (const char_t * method,
o->onset_output = new_fvec (1);
o->pitch = new_aubio_pitch (pitch_method, o->pitch_buf_size, o->hop_size, o->samplerate);
+ if (o->pitch == NULL) goto fail;
if (o->pitch_tolerance != 0.) aubio_pitch_set_tolerance (o->pitch, o->pitch_tolerance);
aubio_pitch_set_unit (o->pitch, "midi");
o->pitch_output = new_fvec (1);