summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArnaud Bienner <abien@dolby.com>2019-12-18 14:37:41 +0100
committerArnaud Bienner <abien@dolby.com>2019-12-18 14:37:41 +0100
commitac29693ab6af42c1babba8a3b5c359c7c1726e3c (patch)
tree6d84a7769bba986d6c675cfe7d247142478cdf29 /src
parentcf81f87c1517aabb892f0ea29ab5b6f7d8a09d47 (diff)
Fix Object ref not being written: this prevented GenericStreamTextBasedSet to be correctly linked to TextBasedDMFramework
Diffstat (limited to 'src')
-rwxr-xr-xsrc/MXF.h2
-rwxr-xr-xsrc/h__Writer.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/MXF.h b/src/MXF.h
index b8d1193..d730b8c 100755
--- a/src/MXF.h
+++ b/src/MXF.h
@@ -253,7 +253,7 @@ namespace ASDCP
}
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; }
diff --git a/src/h__Writer.cpp b/src/h__Writer.cpp
index 71e9ce6..fc7f060 100755
--- a/src/h__Writer.cpp
+++ b/src/h__Writer.cpp
@@ -180,7 +180,8 @@ ASDCP::AddDmsTrackGenericPartUtf8Text(Kumu::FileWriter& file_writer, MXF::OP1aHe
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;