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