fix sndfilesource::open return value typo.

This commit is contained in:
Robin Gareus 2015-09-20 18:38:52 +02:00
parent 6c53ebc4c1
commit ac078fd93f

View 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);