修复mp4_as_player设置为1时,on_stream_none_reader回调无效流信息的问题 (#4725)

This commit is contained in:
xia-chu
2026-05-03 19:47:09 +08:00
parent 9bff057860
commit ee05ae159a
7 changed files with 41 additions and 1 deletions

View File

@@ -68,6 +68,10 @@ public:
return _option.ts_demand ? (_clear_cache ? true : _enabled) : true;
}
MediaSource::Ptr getMediaSource() const {
return _media_src;
}
protected:
void onWrite(std::shared_ptr<toolkit::Buffer> buffer, uint64_t timestamp, bool key_pos) override {
if (!buffer) {