由于在RtspSession类确保了函数执行顺序,所以回滚多余代码也能确保单track流迅速注册

This commit is contained in:
xiongziliang 2021-05-15 10:05:47 +08:00
parent 4cd618899b
commit d395d23eeb

View File

@ -89,9 +89,6 @@ public:
_muxer->addTrack(track); _muxer->addTrack(track);
track->addDelegate(_muxer); track->addDelegate(_muxer);
} }
if (_all_demuxer_track_ready) {
this->addTrackCompleted();
}
} }
/** /**
@ -111,7 +108,6 @@ public:
if (_muxer) { if (_muxer) {
_muxer->addTrackCompleted(); _muxer->addTrackCompleted();
} }
_all_demuxer_track_ready = true;
} }
void resetTracks() override { void resetTracks() override {
@ -145,7 +141,6 @@ private:
RtspDemuxer::Ptr _demuxer; RtspDemuxer::Ptr _demuxer;
MultiMediaSourceMuxer::Ptr _muxer; MultiMediaSourceMuxer::Ptr _muxer;
bool _all_track_ready = false; bool _all_track_ready = false;
bool _all_demuxer_track_ready = false;
}; };
} /* namespace mediakit */ } /* namespace mediakit */