X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fsndfile_manager.cc;h=c028bc11bacae12e47c33b413c7268f14e0dbd36;hb=23bec25bf525dfc1434fe8b95f6d81c9387ac9c5;hp=982f028dddc8adc8f017206c68c74b14b0325894;hpb=0761902b7ece5e422c3ddb7f79c775259521052a;p=ardour.git diff --git a/libs/pbd/sndfile_manager.cc b/libs/pbd/sndfile_manager.cc index 982f028ddd..c028bc11ba 100644 --- a/libs/pbd/sndfile_manager.cc +++ b/libs/pbd/sndfile_manager.cc @@ -22,7 +22,6 @@ */ #include -#include #include #include #include @@ -90,12 +89,7 @@ SndFileDescriptor::open () { /* we must have a lock on the FileManager's mutex */ - int fd = ::open(_path.c_str(), O_LARGEFILE | (_writeable ? (O_RDWR|O_CREAT) : O_RDONLY)); - if (fd == -1) return false; - fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); - - _sndfile = sf_open_fd (fd, _writeable ? SFM_RDWR : SFM_READ, _info, 1); - + _sndfile = sf_open (_path.c_str(), _writeable ? SFM_RDWR : SFM_READ, _info); return (_sndfile == 0); }