[vlc-commits] rtsp: use secf to tick functions for conversion
Steve Lhomme
git at videolan.org
Thu Jul 5 16:17:08 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 14:00:00 2018 +0200| [38012100403b2b51ba2b2a57281926681704c035] | committer: Steve Lhomme
rtsp: use secf to tick functions for conversion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38012100403b2b51ba2b2a57281926681704c035
---
modules/stream_out/rtsp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c
index bc37df375f..1c04252465 100644
--- a/modules/stream_out/rtsp.c
+++ b/modules/stream_out/rtsp.c
@@ -1067,7 +1067,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
npt = start;
}
- double f_npt = (double) npt / CLOCK_FREQ;
+ double f_npt = secf_from_vlc_tick(npt);
httpd_MsgAdd( answer, "Range", "npt=%f-", f_npt );
}
@@ -1125,7 +1125,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
assert(vod);
int64_t npt = 0;
vod_pause(rtsp->vod_media, psz_session, &npt);
- double f_npt = (double) npt / CLOCK_FREQ;
+ double f_npt = secf_from_vlc_tick(npt);
httpd_MsgAdd( answer, "Range", "npt=%f-", f_npt );
}
break;
More information about the vlc-commits
mailing list