mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-03 00:47:34 +08:00
节省内存、修复MediaSource不注册的bug
This commit is contained in:
@@ -89,7 +89,7 @@ void RtmpMuxer::inputFrame(const Frame::Ptr &frame) {
|
||||
return;
|
||||
}
|
||||
it->second->inputFrame(frame);
|
||||
if(!_trackReadyCallback.empty() && it->second->ready()){
|
||||
if(!_inited && !_trackReadyCallback.empty() && it->second->ready()){
|
||||
//Track由未就绪状态装换成就绪状态,我们就生成metedata以及Rtmp编码器
|
||||
auto it_callback = _trackReadyCallback.find(codec_id);
|
||||
if(it_callback != _trackReadyCallback.end()){
|
||||
|
||||
Reference in New Issue
Block a user