summaryrefslogtreecommitdiff
path: root/libs/ardour/sndfilesource.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-09-20 18:38:52 +0200
committerRobin Gareus <robin@gareus.org>2015-09-20 18:38:52 +0200
commitac078fd93fa6106c1eb60f92d17c2a2c24cb6e39 (patch)
treeeef07aba57a42ad46bbf1242a3ec1ab3b289e42c /libs/ardour/sndfilesource.cc
parent6c53ebc4c10e73450571710dc5be6add43f78c1d (diff)
fix sndfilesource::open return value typo.
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r--libs/ardour/sndfilesource.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc
index 44597645e7..18c6df4a48 100644
--- a/libs/ardour/sndfilesource.cc
+++ b/libs/ardour/sndfilesource.cc
@@ -281,7 +281,7 @@ SndFileSource::open ()
_ ("SndFileSource: cannot open file \"%1\" for %2"),
_path,
(writable () ? "read+write" : "reading")) << endmsg;
- return false;
+ return -1;
}
_sndfile = sf_open_fd (fd, writable() ? SFM_RDWR : SFM_READ, &_info, true);