// error occurs.
Result_t WriteFrame(const ASDCP::FrameBuffer&, ASDCP::AESEncContext* = 0, ASDCP::HMACContext* = 0);
- // Writes an XML text document to the MXF file as per RP 2067. If the
+ // Writes an XML text document to the MXF file as per RP 2057. If the
// optional AESEncContext argument is present, the document is encrypted
// prior to writing. Fails if the file is not open, is finalized, or an
// operating system error occurs.
}
bool operator==(const PropertyType& rhs) const { return this->m_property == rhs; }
bool operator==(const optional_property<PropertyType>& rhs) const { return this->m_property == rhs.m_property; }
- operator PropertyType&() { return this->m_property; }
+ operator const PropertyType&() const { return this->m_property; }
void set(const PropertyType& rhs) { this->m_property = rhs; this->m_has_value = true; }
void set_has_value(bool has_value = true) { this->m_has_value = has_value; }
void reset(const PropertyType& rhs) { this->m_has_value = false; }
assert(dmf_obj);
header_part.AddChildObject(dmf_obj);
Segment->DMFramework = dmf_obj->InstanceUID;
- GenRandomValue(dmf_obj->ObjectRef);
+ GenRandomValue(dmf_obj->ObjectRef.get());
+ dmf_obj->ObjectRef.set_has_value();
// Create a new SID on the RIP, located at the current file position
ui32_t max_sid = 0;