diff options
| author | Brogan <broganross@gmail.com> | 2019-08-15 09:06:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-15 09:06:41 -0700 |
| commit | e00923e06c7344fe1e9ea0195b84472f73714d63 (patch) | |
| tree | 4d8f1883f2019061fff38fa6f7074b07527b5fd1 /src/AS_DCP_TimedText.cpp | |
| parent | 5c74d64d6e8d72b54e4ab34204c1ba06539422f5 (diff) | |
Clear ResourceList before filling it
If the same TimedTextReader is opened more than once the descriptor's resource list isn't cleared before it is populated. This causes duplicate resources within the list.
Diffstat (limited to 'src/AS_DCP_TimedText.cpp')
| -rw-r--r-- | src/AS_DCP_TimedText.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/AS_DCP_TimedText.cpp b/src/AS_DCP_TimedText.cpp index d3c0fa8..0cc3748 100644 --- a/src/AS_DCP_TimedText.cpp +++ b/src/AS_DCP_TimedText.cpp @@ -160,6 +160,7 @@ ASDCP::TimedText::MXFReader::h__Reader::MD_to_TimedText_TDesc(TimedText::TimedTe memcpy(TDesc.AssetID, TDescObj->ResourceID.Value(), UUIDlen); TDesc.NamespaceName = TDescObj->NamespaceURI; TDesc.EncodingName = TDescObj->UCSEncoding; + TDesc.ResourceList.clear(); Array<UUID>::const_iterator sdi = TDescObj->SubDescriptors.begin(); TimedTextResourceSubDescriptor* DescObject = 0; |
