Cleanup: handle Filter objects by value rather than by reference.
[dcpomatic.git] / src / lib / subtitle_analysis.cc
index 9b3ae86c065656ad71394e0b01575ed30f2af4e1..ff1969a3a37c227cd32fde4a2dc793760648908a 100644 (file)
@@ -22,6 +22,7 @@
 #include "subtitle_analysis.h"
 #include "exceptions.h"
 #include <libcxml/cxml.h>
+#include <dcp/filesystem.h>
 #include <dcp/raw_convert.h>
 #include <dcp/warnings.h>
 LIBDCP_DISABLE_WARNINGS
@@ -42,7 +43,7 @@ SubtitleAnalysis::SubtitleAnalysis (boost::filesystem::path path)
 {
        cxml::Document f ("SubtitleAnalysis");
 
-       f.read_file (path);
+       f.read_file(dcp::filesystem::fix_long_path(path));
 
        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. */