summaryrefslogtreecommitdiff
path: root/src/h__Writer.cpp
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2019-12-30 14:04:23 -0800
committerGitHub <noreply@github.com>2019-12-30 14:04:23 -0800
commit4f604322588faf1b57e4b0bdc09c67c556b308b8 (patch)
tree3f805afc72c3b88b93424aae4bd5f53cfdf25f9b /src/h__Writer.cpp
parent9e269bd45830f54551722a65b0d7aa8f327e17dc (diff)
parentac29693ab6af42c1babba8a3b5c359c7c1726e3c (diff)
Merge pull request #22 from DolbyLaboratories/dolby/fix_object_ref_not_being_written
Fix Object ref not being written
Diffstat (limited to 'src/h__Writer.cpp')
-rwxr-xr-xsrc/h__Writer.cpp3
1 files changed, 2 insertions, 1 deletions
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;