Replace hack with use of generic_string from boost::filesystem.
[libdcp.git] / src / mono_picture_asset_writer.cc
index 564a5ea15a9d363ffe083bfb6d2236f1cee44905..54339ed57518a941743b3e1b28b9d5c2ed709e07 100644 (file)
@@ -74,7 +74,7 @@ MonoPictureAssetWriter::write (uint8_t* data, int size)
        uint64_t const before_offset = _state->mxf_writer.Tell ();
 
        string hash;
-       ASDCP::Result_t const r = _state->mxf_writer.WriteFrame (_state->frame_buffer, _encryption_context, 0, &hash);
+       ASDCP::Result_t const r = _state->mxf_writer.WriteFrame (_state->frame_buffer, _encryption_context, _hmac_context, &hash);
        if (ASDCP_FAILURE (r)) {
                boost::throw_exception (MXFFileError ("error in writing video MXF", _file.string(), r));
        }