mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
修复bug
This commit is contained in:
parent
097cf273d5
commit
91a766243b
@ -88,12 +88,8 @@ void RtmpMuxer::inputFrame(const Frame::Ptr &frame) {
|
||||
if (it == _track_map.end()) {
|
||||
return;
|
||||
}
|
||||
//Track是否准备好
|
||||
auto ready = it->second->ready();
|
||||
//inputFrame可能使Track变成就绪状态
|
||||
it->second->inputFrame(frame);
|
||||
|
||||
if(!ready && it->second->ready()){
|
||||
if(!_trackReadyCallback.empty() && it->second->ready()){
|
||||
//Track由未就绪状态装换成就绪状态,我们就生成metedata以及Rtmp编码器
|
||||
auto it_callback = _trackReadyCallback.find(codec_id);
|
||||
if(it_callback != _trackReadyCallback.end()){
|
||||
|
@ -77,12 +77,8 @@ void RtspMuxer::inputFrame(const Frame::Ptr &frame) {
|
||||
if (it == _track_map.end()) {
|
||||
return;
|
||||
}
|
||||
//Track是否准备好
|
||||
auto ready = it->second->ready();
|
||||
//inputFrame可能使Track变成就绪状态
|
||||
it->second->inputFrame(frame);
|
||||
|
||||
if(!ready && it->second->ready()){
|
||||
if(!_trackReadyCallback.empty() && it->second->ready()){
|
||||
//Track由未就绪状态装换成就绪状态,我们就生成sdp以及rtp编码器
|
||||
auto it_callback = _trackReadyCallback.find(codec_id);
|
||||
if(it_callback != _trackReadyCallback.end()){
|
||||
|
Loading…
Reference in New Issue
Block a user