make Session::get_remote_nth_stripable() ignore hidden stripables unless asked.
[ardour.git] / libs / ardour / sndfileimportable.cc
index 11cff41c355d3898dcbee59a34d339f7187e0b3a..95b269a014a455111c02495b6ab5d78d0243d29d 100644 (file)
@@ -23,7 +23,7 @@
 #include <fcntl.h>
 
 #include <glib.h>
-#include <glib/gstdio.h>
+#include "pbd/gstdio_compat.h"
 
 
 #include "pbd/error.h"
@@ -74,7 +74,7 @@ SndFileImportableSource::get_timecode_info (SNDFILE* sf, SF_BROADCAST_INFO* binf
 
 SndFileImportableSource::SndFileImportableSource (const string& path)
 {
-       int fd = g_open (path.c_str (), SFM_READ, 0444);
+       int fd = g_open (path.c_str (), O_RDONLY, 0444);
        if (fd == -1) {
                throw failed_constructor ();
        }