修复rtsp点播时长不准的bug

This commit is contained in:
ziyue 2021-10-25 19:39:45 +08:00
parent 573dc2e67a
commit cd52a022f4

View File

@ -98,9 +98,8 @@ string SdpTrack::toString(uint16_t port) const {
_StrPrinter _printer; _StrPrinter _printer;
switch (_type) { switch (_type) {
case TrackTitle: { case TrackTitle: {
TitleSdp title(atof(_t.data())); TitleSdp title(_duration);
_printer << title.getSdp(); _printer << title.getSdp();
getAttrSdp(_attr, _printer);
break; break;
} }
case TrackAudio: case TrackAudio: