Remove in-place translations support.
[dcpomatic.git] / src / lib / audio_analysis.cc
index b16fa708ad85d74bad44d134b2302745b4d8602c..b8c2e072db8d6d94a364dd0a1054f0c126696703 100644 (file)
 
 
 #include "audio_analysis.h"
+#include "audio_content.h"
 #include "cross.h"
-#include "util.h"
 #include "playlist.h"
-#include "audio_content.h"
-#include "warnings.h"
+#include "util.h"
 #include <dcp/raw_convert.h>
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
 #include <boost/filesystem.hpp>
 #include <stdint.h>
 #include <cmath>
@@ -66,7 +66,7 @@ AudioAnalysis::AudioAnalysis (int channels)
 AudioAnalysis::AudioAnalysis (boost::filesystem::path filename)
 {
        cxml::Document f ("AudioAnalysis");
-       f.read_file (filename);
+       f.read_file(dcp::filesystem::fix_long_path(filename));
 
        if (f.optional_number_child<int>("Version").get_value_or(1) < _current_state_version) {
                /* Too old.  Throw an exception so that this analysis is re-run. */