Skip to content

Commit

Permalink
fix parsing ntptime & starttime
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Feb 18, 2024
1 parent eb098f2 commit af76e86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rtspconnectionclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ void RTSPConnection::RTSPClientConnection::setNptstartTime()

std::string startTimeValue = getParamValue(urlStr, "starttime");
if (!startTimeValue.empty()) {
size_t pos = startTimeValue.find('&');
if (pos != std::string::npos) {
startTimeValue = startTimeValue.substr(0, pos);
}
m_clockStartTime = startTimeValue;
}
}
Expand Down

0 comments on commit af76e86

Please sign in to comment.