diff --git a/src/Common/MultiMediaSourceMuxer.h b/src/Common/MultiMediaSourceMuxer.h index 83b08a7e..08b9ee79 100644 --- a/src/Common/MultiMediaSourceMuxer.h +++ b/src/Common/MultiMediaSourceMuxer.h @@ -79,8 +79,8 @@ public: return _rtsp->readerCount() + _rtmp->readerCount(); } - void updateTimeStamp(uint32_t stamp){ - _rtsp->updateTimeStamp(stamp); + void setTimeStamp(uint32_t stamp){ + _rtsp->setTimeStamp(stamp); } private: RtmpMediaSourceMuxer::Ptr _rtmp; diff --git a/src/MediaFile/MediaReader.cpp b/src/MediaFile/MediaReader.cpp index aae801e1..3200e5b5 100644 --- a/src/MediaFile/MediaReader.cpp +++ b/src/MediaFile/MediaReader.cpp @@ -306,7 +306,7 @@ void MediaReader::seek(int iSeekTime,bool bReStart){ setSeekTime(iSeekTime); } } - _pChn->updateTimeStamp(_iSeekTime); + _pChn->setTimeStamp(_iSeekTime); if(bReStart){ AsyncTaskThread::Instance().CancelTask(reinterpret_cast(this)); diff --git a/src/Rtsp/RtspMediaSource.h b/src/Rtsp/RtspMediaSource.h index 4ad785f1..4cdaf125 100644 --- a/src/Rtsp/RtspMediaSource.h +++ b/src/Rtsp/RtspMediaSource.h @@ -92,7 +92,7 @@ public: return track->_time_stamp; } - void updateTimeStamp(uint32_t uiStamp) { + void setTimeStamp(uint32_t uiStamp) { auto tracks = _sdpAttr.getAvailableTrack(); for (auto &track : tracks) { track->_time_stamp = uiStamp; diff --git a/src/RtspMuxer/RtspMediaSourceMuxer.h b/src/RtspMuxer/RtspMediaSourceMuxer.h index 7d5b56d6..cf2ba581 100644 --- a/src/RtspMuxer/RtspMediaSourceMuxer.h +++ b/src/RtspMuxer/RtspMediaSourceMuxer.h @@ -51,8 +51,8 @@ public: int readerCount() const{ return _mediaSouce->getRing()->readerCount(); } - void updateTimeStamp(uint32_t stamp){ - _mediaSouce->updateTimeStamp(stamp); + void setTimeStamp(uint32_t stamp){ + _mediaSouce->setTimeStamp(stamp); } private: void onInited() override {