summaryrefslogtreecommitdiff
path: root/libavformat/rtspdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-10-22 12:40:46 +0300
committerMartin Storsjö <martin@martin.st>2014-10-24 09:53:45 +0300
commit6df9d9b55d3f56ee7782639a7678eeeaf77f14ea (patch)
tree03a66a094e1c9803a25bbd244adcd7c01269655d /libavformat/rtspdec.c
parentd0c093021943e9b9c23528b12cd61ca2a5b01b4f (diff)
lavf: Use av_gettime_relative
The ones left using av_gettime are NTP timestamps (for RTCP, which is specified to send the actual current realtime clock in RTCP SR packets), and the NUT muxer timestamper, which is documented as using wallclock time. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r--libavformat/rtspdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index aa016c3194..1f90590c89 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -885,7 +885,7 @@ retry:
if (!(rt->rtsp_flags & RTSP_FLAG_LISTEN)) {
/* send dummy request to keep TCP connection alive */
- if ((av_gettime() - rt->last_cmd_time) / 1000000 >= rt->timeout / 2 ||
+ if ((av_gettime_relative() - rt->last_cmd_time) / 1000000 >= rt->timeout / 2 ||
rt->auth_state.stale) {
if (rt->server_type == RTSP_SERVER_WMS ||
(rt->server_type != RTSP_SERVER_REAL &&