From 531694bf8dc7ee2245a0703efa64e1eabe466b08 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Mon, 14 Jun 2021 20:09:30 +0200 Subject: [PATCH] RtspThread: Add missing static_cast when fprinting duration .count() --- src/zm_rtsp.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zm_rtsp.cpp b/src/zm_rtsp.cpp index f73a74760..d31df3012 100644 --- a/src/zm_rtsp.cpp +++ b/src/zm_rtsp.cpp @@ -458,7 +458,9 @@ void RtspThread::Run() { if ( session.empty() ) Fatal("Unable to get session identifier from response '%s'", response.c_str()); - Debug(2, "Got RTSP session %s, timeout %" PRIi64 " secs", session.c_str(), Seconds(timeout).count()); + Debug(2, "Got RTSP session %s, timeout %" PRIi64 " secs", + session.c_str(), + static_cast(Seconds(timeout).count())); if ( !transport[0] ) Fatal("Unable to get transport details from response '%s'", response.c_str()); @@ -530,7 +532,8 @@ void RtspThread::Run() { } if ( timeout > Seconds(0) ) { - Debug(2, "Got timeout %" PRIi64 " secs from PLAY command response", Seconds(timeout).count()); + Debug(2, "Got timeout %" PRIi64 " secs from PLAY command response", + static_cast(Seconds(timeout).count())); } } }