projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6222fc
)
src/io/source_wavread.c: allow closing twice
author
Paul Brossier
<piem@piem.org>
Mon, 27 Feb 2017 00:33:21 +0000
(
01:33
+0100)
committer
Paul Brossier
<piem@piem.org>
Mon, 27 Feb 2017 00:33:21 +0000
(
01:33
+0100)
src/io/source_wavread.c
patch
|
blob
|
history
diff --git
a/src/io/source_wavread.c
b/src/io/source_wavread.c
index
4565b33
..
640201b
100644
(file)
--- a/
src/io/source_wavread.c
+++ b/
src/io/source_wavread.c
@@
-439,8
+439,8
@@
uint_t aubio_source_wavread_get_duration (const aubio_source_wavread_t * s) {
}
uint_t aubio_source_wavread_close (aubio_source_wavread_t * s) {
- if (
!s->fid
) {
- return AUBIO_
FAIL
;
+ if (
s->fid == NULL
) {
+ return AUBIO_
OK
;
}
if (fclose(s->fid)) {
AUBIO_ERR("source_wavread: could not close %s (%s)\n", s->path, strerror(errno));