Optimize Decoder inheritance relationship (#1760)

This commit is contained in:
CharleyWangHZ
2022-06-29 11:01:16 +08:00
committed by GitHub
parent 07982b7243
commit 28350c0d05
6 changed files with 16 additions and 27 deletions

View File

@@ -45,14 +45,10 @@ public:
TSDecoder();
~TSDecoder();
ssize_t input(const uint8_t* data, size_t bytes) override ;
void setOnDecode(onDecode cb) override;
void setOnStream(onStream cb) override;
private:
TSSegment _ts_segment;
struct ts_demuxer_t* _demuxer_ctx = nullptr;
onDecode _on_decode;
onStream _on_stream;
};
#endif//defined(ENABLE_HLS)