From facf4f4c7a8ed65d59baed9020d5fa061b952874 Mon Sep 17 00:00:00 2001 From: milla Date: Wed, 26 May 2021 13:32:55 +0200 Subject: FileReader pluggable at runtime --- src/AS_02_IAB.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/AS_02_IAB.cpp') 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 { -- cgit v1.2.3