mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +08:00
由于在RtspSession类确保了函数执行顺序,所以回滚多余代码也能确保单track流迅速注册
This commit is contained in:
parent
4cd618899b
commit
d395d23eeb
@ -89,9 +89,6 @@ public:
|
||||
_muxer->addTrack(track);
|
||||
track->addDelegate(_muxer);
|
||||
}
|
||||
if (_all_demuxer_track_ready) {
|
||||
this->addTrackCompleted();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -111,7 +108,6 @@ public:
|
||||
if (_muxer) {
|
||||
_muxer->addTrackCompleted();
|
||||
}
|
||||
_all_demuxer_track_ready = true;
|
||||
}
|
||||
|
||||
void resetTracks() override {
|
||||
@ -145,7 +141,6 @@ private:
|
||||
RtspDemuxer::Ptr _demuxer;
|
||||
MultiMediaSourceMuxer::Ptr _muxer;
|
||||
bool _all_track_ready = false;
|
||||
bool _all_demuxer_track_ready = false;
|
||||
};
|
||||
} /* namespace mediakit */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user