diff options
| author | milla <marc.illa@dolby.com> | 2021-05-26 13:32:55 +0200 |
|---|---|---|
| committer | milla <marc.illa@dolby.com> | 2021-06-03 13:50:11 +0200 |
| commit | facf4f4c7a8ed65d59baed9020d5fa061b952874 (patch) | |
| tree | 8c718f4b7690db47315ebf70b6443f3fba540cf7 /src/AS_02_IAB.cpp | |
| parent | 7a085ad0d445ffc63ec42a2faa69a82138931575 (diff) | |
FileReader pluggable at runtime
Diffstat (limited to 'src/AS_02_IAB.cpp')
| -rw-r--r-- | src/AS_02_IAB.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/AS_02_IAB.cpp b/src/AS_02_IAB.cpp index aa551d9..dc06f10 100644 --- a/src/AS_02_IAB.cpp +++ b/src/AS_02_IAB.cpp @@ -177,7 +177,7 @@ AS_02::IAB::MXFWriter::OpenWrite( /* start the clip */ - this->m_ClipStart = this->m_Writer->m_File.Tell(); + this->m_ClipStart = this->m_Writer->m_File.TellPosition(); /* reserve space for the KL of the KLV, which will be written later during finalization */ @@ -278,7 +278,7 @@ AS_02::IAB::MXFWriter::Finalize() { /* write clip length */ - ui64_t current_position = this->m_Writer->m_File.Tell(); + ui64_t current_position = this->m_Writer->m_File.TellPosition(); result = this->m_Writer->m_File.Seek(m_ClipStart + ASDCP::SMPTE_UL_LENGTH); @@ -337,7 +337,7 @@ AS_02::IAB::MXFWriter::Reset() { //------------------------------------------------------------------------------------------ -AS_02::IAB::MXFReader::MXFReader() : m_State(ST_READER_BEGIN) {} +AS_02::IAB::MXFReader::MXFReader(const Kumu::IFileReaderFactory& fileReaderFactory) : m_State(ST_READER_BEGIN), m_FileReaderFactory(fileReaderFactory) {} AS_02::IAB::MXFReader::~MXFReader() {} @@ -372,7 +372,7 @@ AS_02::IAB::MXFReader::OpenRead(const std::string& filename) { /* initialize the writer */ - this->m_Reader = new h__Reader(&DefaultCompositeDict()); + this->m_Reader = new h__Reader(&DefaultCompositeDict(), m_FileReaderFactory); try { |
