diff --git a/src/Rtsp/RtspMediaSourceImp.h b/src/Rtsp/RtspMediaSourceImp.h index 53e9d4d0..37731f1e 100644 --- a/src/Rtsp/RtspMediaSourceImp.h +++ b/src/Rtsp/RtspMediaSourceImp.h @@ -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 */