projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c21cf
)
src/io/source_sndfile.c: improve build with -Wdeclaration-after-statement
author
Paul Brossier
<piem@piem.org>
Mon, 30 Dec 2013 23:26:14 +0000
(19:26 -0400)
committer
Paul Brossier
<piem@piem.org>
Mon, 30 Dec 2013 23:26:14 +0000
(19:26 -0400)
src/io/source_sndfile.c
patch
|
blob
|
history
diff --git
a/src/io/source_sndfile.c
b/src/io/source_sndfile.c
index
0951d5e
..
ac06881
100644
(file)
--- a/
src/io/source_sndfile.c
+++ b/
src/io/source_sndfile.c
@@
-63,6
+63,7
@@
struct _aubio_source_sndfile_t {
aubio_source_sndfile_t * new_aubio_source_sndfile(char_t * path, uint_t samplerate, uint_t hop_size) {
aubio_source_sndfile_t * s = AUBIO_NEW(aubio_source_sndfile_t);
+ SF_INFO sfinfo;
if (path == NULL) {
AUBIO_ERR("Aborted opening null path\n");
@@
-82,7
+83,6
@@
aubio_source_sndfile_t * new_aubio_source_sndfile(char_t * path, uint_t samplera
s->path = path;
// try opening the file, getting the info in sfinfo
- SF_INFO sfinfo;
AUBIO_MEMSET(&sfinfo, 0, sizeof (sfinfo));
s->handle = sf_open (s->path, SFM_READ, &sfinfo);