diff --git a/src/Rtsp/Rtsp.cpp b/src/Rtsp/Rtsp.cpp index 01825fa5..4912e3bd 100644 --- a/src/Rtsp/Rtsp.cpp +++ b/src/Rtsp/Rtsp.cpp @@ -98,9 +98,8 @@ string SdpTrack::toString(uint16_t port) const { _StrPrinter _printer; switch (_type) { case TrackTitle: { - TitleSdp title(atof(_t.data())); + TitleSdp title(_duration); _printer << title.getSdp(); - getAttrSdp(_attr, _printer); break; } case TrackAudio: