Add wrappers around boost::filesystem methods that handle the
[libdcp.git] / src / asset_factory.cc
index 2ab798997799eda72a5afc90c87ebab906e1f4a6..1f830cceecf4d3e248ba84c0a23895863f107620 100644 (file)
@@ -61,7 +61,7 @@ dcp::asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_
        */
 
        ASDCP::EssenceType_t type;
-       auto const result = ASDCP::EssenceType(path.string().c_str(), type);
+       auto const result = ASDCP::EssenceType(dcp::filesystem::fix_long_path(path).string().c_str(), type);
        if (result != ASDCP::RESULT_OK) {
                throw ReadError(String::compose("Could not find essence type (%1)", result.Message()), path.string());
        }