~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'protogen'
[disorder]
/
lib
/
wav.c
diff --git
a/lib/wav.c
b/lib/wav.c
index
8b2d640
..
fe7ffbb
100644
(file)
--- a/
lib/wav.c
+++ b/
lib/wav.c
@@
-129,7
+129,7
@@
int wav_init(struct wavfile *f, const char *path) {
memset(f, 0, sizeof *f);
f->data = -1;
memset(f, 0, sizeof *f);
f->data = -1;
-
hreader_init(path, f->input)
;
+
if(hreader_init(path, f->input)) goto error_errno
;
/* Read the file header
*
* offset size meaning
/* Read the file header
*
* offset size meaning
@@
-196,7
+196,8
@@
error:
}
/** @brief Close a WAV file */
}
/** @brief Close a WAV file */
-void wav_destroy(struct wavfile attribute((unused)) *f) {
+void wav_destroy(struct wavfile *f) {
+ hreader_close(f->input);
}
/** @brief Visit all the data in a WAV file
}
/** @brief Visit all the data in a WAV file