From 0298076eea4f92685f9a01974261da41c2a01e5b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 27 Aug 2019 11:02:23 +0200 Subject: EDI input: add new buffer management --- src/input/Edi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/input/Edi.h') diff --git a/src/input/Edi.h b/src/input/Edi.h index 9542e28..bf65ac9 100644 --- a/src/input/Edi.h +++ b/src/input/Edi.h @@ -53,7 +53,8 @@ class Edi : public InputBase { ~Edi(); virtual void open(const std::string& name); - virtual int readFrame(uint8_t* buffer, size_t size); + virtual size_t readFrame(uint8_t *buffer, size_t size); + virtual size_t readFrame(uint8_t *buffer, size_t size, uint32_t seconds, uint32_t tsta); virtual int setBitrate(int bitrate); virtual void close(); @@ -72,8 +73,11 @@ class Edi : public InputBase { std::thread m_thread; std::atomic m_running = ATOMIC_VAR_INIT(false); ThreadsafeQueue m_frames; + + // Used in timestamp-based buffer management EdiDecoder::sti_frame_t m_pending_sti_frame; + // Used in prebuffering-based buffer management bool m_is_prebuffering = true; std::string m_name; -- cgit v1.2.3