summaryrefslogtreecommitdiff
path: root/src/atmos_asset_writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/atmos_asset_writer.cc')
-rw-r--r--src/atmos_asset_writer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atmos_asset_writer.cc b/src/atmos_asset_writer.cc
index 9d7363d0..0c895b5b 100644
--- a/src/atmos_asset_writer.cc
+++ b/src/atmos_asset_writer.cc
@@ -43,6 +43,7 @@
#include "crypto_context.h"
#include "dcp_assert.h"
#include "exceptions.h"
+#include "filesystem.h"
#include <asdcp/AS_DCP.h>
@@ -94,7 +95,7 @@ AtmosAssetWriter::write (uint8_t const * data, int size)
DCP_ASSERT (!_finalized);
if (!_started) {
- auto r = _state->mxf_writer.OpenWrite (_file.string().c_str(), _state->writer_info, _state->desc);
+ auto r = _state->mxf_writer.OpenWrite(dcp::filesystem::fix_long_path(_file).string().c_str(), _state->writer_info, _state->desc);
if (ASDCP_FAILURE(r)) {
boost::throw_exception (FileError ("could not open atmos MXF for writing", _file.string(), r));
}