修复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

@@ -77,6 +77,10 @@ public:
return _option.hls_demand ? (_clear_cache ? true : _enabled) : true;
}
MediaSource::Ptr getMediaSource() const {
return _hls ? _hls->getMediaSource() : nullptr;
}
protected:
bool _enabled = true;
bool _clear_cache = false;