summaryrefslogtreecommitdiff
path: root/src/AS_02.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2021-04-13 15:50:50 -0700
committerjhurst <jhurst@cinecert.com>2021-04-13 15:50:50 -0700
commitb14d706a72c706c9c59dbdf64a9e41f32465e060 (patch)
tree642c62a644544afb531a8fdbfd4e610bb72728ed /src/AS_02.h
parent4e0891ab9ee94b822043126ea07e97641015e9b7 (diff)
o Added a Clone() method to InterchangeObject and derivatives
that allows making a descriptor copy that is not owned by any other strucure. The caller must arrange to delete the object pointer returned. o While implementing the above it became obvious that the reference-to-a-pointer-to-the-dictionary idiom that is used throughout the lower levels of the MXF library was the cause of much more grief than it was originally designed to prevent. This was made even more obvious when I replaced all of it with simple pointers, which revealed several shadow instances of m_Dict that were only reliable while the object that held them was valid.
Diffstat (limited to 'src/AS_02.h')
-rw-r--r--src/AS_02.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/AS_02.h b/src/AS_02.h
index 61a2c1e..ab58f31 100644
--- a/src/AS_02.h
+++ b/src/AS_02.h
@@ -82,10 +82,9 @@ namespace AS_02
AS02IndexReader();
public:
- const ASDCP::Dictionary*& m_Dict;
ASDCP::IPrimerLookup *m_Lookup;
- AS02IndexReader(const ASDCP::Dictionary*&);
+ AS02IndexReader(const ASDCP::Dictionary*);
virtual ~AS02IndexReader();
Result_t InitFromFile(const Kumu::FileReader& reader, const ASDCP::MXF::RIP& rip, const bool has_header_essence);