From ac078fd93fa6106c1eb60f92d17c2a2c24cb6e39 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 20 Sep 2015 18:38:52 +0200 Subject: [PATCH] fix sndfilesource::open return value typo. --- libs/ardour/sndfilesource.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);