From f7c2803691b095868b8750d19e8049779b4d168d Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Sat, 18 Oct 2025 12:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DgetSequence=E6=8B=BC=E5=86=99?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspMediaSource.h | 2 +- src/Rtsp/RtspSession.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Rtsp/RtspMediaSource.h b/src/Rtsp/RtspMediaSource.h index a878c13e..bae7864d 100644 --- a/src/Rtsp/RtspMediaSource.h +++ b/src/Rtsp/RtspMediaSource.h @@ -132,7 +132,7 @@ public: * [AUTO-TRANSLATED:24b0ee74] */ - virtual uint16_t getSeqence(TrackType trackType) { + virtual uint16_t getSequence(TrackType trackType) { assert(trackType >= 0 && trackType < TrackMax); auto &track = _tracks[trackType]; if (!track) { diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index bfbfaf42..d0367970 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -437,7 +437,7 @@ void RtspSession::onAuthSuccess() { strong_self->_play_src = rtsp_src; for(auto &track : strong_self->_sdp_track){ track->_ssrc = rtsp_src->getSsrc(track->_type); - track->_seq = rtsp_src->getSeqence(track->_type); + track->_seq = rtsp_src->getSequence(track->_type); track->_time_stamp = rtsp_src->getTimeStamp(track->_type); } @@ -832,7 +832,7 @@ void RtspSession::handleReq_Play(const Parser &parser) { } inited_tracks.emplace_back(track->_type); track->_ssrc = play_src->getSsrc(track->_type); - track->_seq = play_src->getSeqence(track->_type); + track->_seq = play_src->getSequence(track->_type); track->_time_stamp = play_src->getTimeStamp(track->_type); rtp_info << "url=" << track->getControlUrl(_content_base) << ";"