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/KLV.cpp | |
| parent | 7a085ad0d445ffc63ec42a2faa69a82138931575 (diff) | |
FileReader pluggable at runtime
Diffstat (limited to 'src/KLV.cpp')
| -rwxr-xr-x | src/KLV.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
