abort if configuration fails
[ardour.git] / libs / ardour / sndfilesource.cc
index 8a8e1172310211c401769d07b888f4ced036c4a1..73361c33da64553723ba8a4029045a52a6b86a13 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/stat.h>
 
 #include <glib.h>
-#include <pbd/gstdio_compat.h>
+#include "pbd/gstdio_compat.h"
 
 #include <glibmm/convert.h>
 #include <glibmm/fileutils.h>
@@ -255,6 +255,7 @@ SndFileSource::close ()
        if (_sndfile) {
                sf_close (_sndfile);
                _sndfile = 0;
+               file_closed ();
        }
 }
 
@@ -316,7 +317,7 @@ SndFileSource::open ()
 #ifdef HAVE_RF64_RIFF
        if (_file_is_new && _length == 0 && writable()) {
                if (_flags & RF64_RIFF) {
-                       if (sf_command (_sndfile, SFC_AUTO_DOWNGRADE_RF64, 0, 0) != SF_TRUE) {
+                       if (sf_command (_sndfile, SFC_RF64_AUTO_DOWNGRADE, 0, 0) != SF_TRUE) {
                                char errbuf[256];
                                sf_error_str (_sndfile, errbuf, sizeof (errbuf) - 1);
                                error << string_compose (_("Cannot mark RF64 audio file for automatic downgrade to WAV: %1"), errbuf)