Emit no audio from DCPs if none is mapped
[dcpomatic.git] / src / lib / audio_analysis.cc
index 6f1bb2375613f851116eb66d096c9fc147296d99..b8c2e072db8d6d94a364dd0a1054f0c126696703 100644 (file)
@@ -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. */