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/KLV.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/KLV.cpp') diff --git a/src/KLV.cpp b/src/KLV.cpp index 303a672..681a834 100755 --- a/src/KLV.cpp +++ b/src/KLV.cpp @@ -189,7 +189,7 @@ ASDCP::KLVPacket::Dump(FILE* stream, const Dictionary& Dict, bool show_value) // ASDCP::Result_t -ASDCP::KLVFilePacket::InitFromFile(const Kumu::FileReader& Reader, const UL& label) +ASDCP::KLVFilePacket::InitFromFile(const Kumu::IFileReader& Reader, const UL& label) { Result_t result = KLVFilePacket::InitFromFile(Reader); @@ -201,7 +201,7 @@ ASDCP::KLVFilePacket::InitFromFile(const Kumu::FileReader& Reader, const UL& lab // TODO: refactor to use InitFromBuffer ASDCP::Result_t -ASDCP::KLVFilePacket::InitFromFile(const Kumu::FileReader& Reader) +ASDCP::KLVFilePacket::InitFromFile(const Kumu::IFileReader& Reader) { ui32_t read_count; byte_t tmp_data[tmp_read_size]; @@ -266,7 +266,7 @@ ASDCP::KLVFilePacket::InitFromFile(const Kumu::FileReader& Reader) if ( (remainder = read_count - packet_length) != 0 ) { DefaultLogSink().Warn("Repositioning pointer for short packet\n"); - Kumu::fpos_t pos = Reader.Tell(); + Kumu::fpos_t pos = Reader.TellPosition(); assert(pos > remainder); result = Reader.Seek(pos - remainder); } -- cgit v1.2.3