mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-28 05:29:24 +08:00
Player: 播放器改成同步解码
This commit is contained in:
@@ -87,7 +87,7 @@ private:
|
||||
std::shared_ptr<thread> _thread;
|
||||
};
|
||||
|
||||
class FFmpegDecoder : public FrameWriterInterface, private TaskManager {
|
||||
class FFmpegDecoder : private TaskManager {
|
||||
public:
|
||||
using Ptr = std::shared_ptr<FFmpegDecoder>;
|
||||
using onDec = function<void(const FFmpegFrame::Ptr &)>;
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
FFmpegDecoder(const Track::Ptr &track);
|
||||
~FFmpegDecoder();
|
||||
|
||||
bool inputFrame(const Frame::Ptr &frame) override;
|
||||
bool inputFrame(const Frame::Ptr &frame, bool may_async = true);
|
||||
void setOnDecode(onDec cb);
|
||||
void flush();
|
||||
const AVCodecContext *getContext() const;
|
||||
|
||||
Reference in New Issue
Block a user