summaryrefslogtreecommitdiff
path: root/src/asset_reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asset_reader.h')
-rw-r--r--src/asset_reader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/asset_reader.h b/src/asset_reader.h
index 8478b51f..c8953e09 100644
--- a/src/asset_reader.h
+++ b/src/asset_reader.h
@@ -44,6 +44,7 @@
#include "asset.h"
#include "crypto_context.h"
#include "dcp_assert.h"
+#include "filesystem.h"
#include <asdcp/AS_DCP.h>
#include <memory>
@@ -98,7 +99,7 @@ private:
{
_reader = new R ();
DCP_ASSERT (asset->file());
- auto const r = _reader->OpenRead (asset->file()->string().c_str());
+ auto const r = _reader->OpenRead(dcp::filesystem::fix_long_path(*asset->file()).string().c_str());
if (ASDCP_FAILURE(r)) {
delete _reader;
boost::throw_exception (FileError("could not open MXF file for reading", asset->file().get(), r));