X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsound_asset_writer.cc;h=a7be0859251c4fb74d7be4562cd985aad4a484a2;hb=e4b2ebd80779a44d24fe87af26ef278c1e2d97d2;hp=1185616a30927be43af82d63e19dcaa108ef7ac2;hpb=3be26a66645de04c7b220abeebfd2f024990a696;p=libdcp.git diff --git a/src/sound_asset_writer.cc b/src/sound_asset_writer.cc index 1185616a..a7be0859 100644 --- a/src/sound_asset_writer.cc +++ b/src/sound_asset_writer.cc @@ -42,6 +42,7 @@ #include "crypto_context.h" #include "dcp_assert.h" #include "exceptions.h" +#include "filesystem.h" #include "sound_asset.h" #include "sound_asset_writer.h" #include "warnings.h" @@ -146,7 +147,7 @@ SoundAssetWriter::~SoundAssetWriter() void SoundAssetWriter::start () { - 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 audio MXF for writing", _file.string(), r)); }