规范命名

This commit is contained in:
xiongziliang 2018-10-26 14:19:13 +08:00
parent 8f8eda9337
commit d0a73d0f97
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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<uint64_t>(this));

View File

@ -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;

View File

@ -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 {