projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dab4a4c
)
python/ext/py-phasevoc.c: use error string set in src/spectral/phasevoc.c
author
Paul Brossier
<piem@piem.org>
Fri, 23 Sep 2016 01:23:47 +0000
(
03:23
+0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 23 Sep 2016 01:23:47 +0000
(
03:23
+0200)
python/ext/py-phasevoc.c
patch
|
blob
|
history
diff --git
a/python/ext/py-phasevoc.c
b/python/ext/py-phasevoc.c
index
bcd3d8b
..
74ddc18
100644
(file)
--- a/
python/ext/py-phasevoc.c
+++ b/
python/ext/py-phasevoc.c
@@
-66,9
+66,8
@@
Py_pvoc_init (Py_pvoc * self, PyObject * args, PyObject * kwds)
{
self->o = new_aubio_pvoc ( self->win_s, self->hop_s);
if (self->o == NULL) {
- PyErr_Format(PyExc_RuntimeError,
- "failed creating pvoc with win_s=%d, hop_s=%d",
- self->win_s, self->hop_s);
+ // PyErr_Format(PyExc_RuntimeError, ...) was set above by new_ which called
+ // AUBIO_ERR when failing
return -1;
}