mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 04:55:58 +08:00
修复时间戳相关的bug
This commit is contained in:
@@ -720,9 +720,9 @@ bool RtspSession::handleReq_Play() {
|
||||
if (strStart == "now") {
|
||||
strStart = "0";
|
||||
}
|
||||
auto iStartTime = atof(strStart.data());
|
||||
InfoL << "rtsp seekTo:" << iStartTime;
|
||||
pMediaSrc->seekTo(iStartTime * 1000);
|
||||
auto iStartTime = 1000 * atof(strStart.data());
|
||||
InfoL << "rtsp seekTo(ms):" << iStartTime;
|
||||
pMediaSrc->seekTo(iStartTime);
|
||||
iStamp = pMediaSrc->getStamp();
|
||||
}else if(pMediaSrc->getRing()->readerCount() == 1){
|
||||
//第一个消费者
|
||||
|
||||
Reference in New Issue
Block a user