fix sndfilesource::open return value typo.
authorRobin Gareus <robin@gareus.org>
Sun, 20 Sep 2015 16:38:52 +0000 (18:38 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 20 Sep 2015 16:38:52 +0000 (18:38 +0200)
libs/ardour/sndfilesource.cc

index 44597645e75148144edd3cc46e32aad3e888ef73..18c6df4a48221afc17535c8fa1525ef8e285ecd7 100644 (file)
@@ -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);