From ec59291b2e869e8c4339cc6cc60963409e63a58d Mon Sep 17 00:00:00 2001 From: Steven Hoving Date: Wed, 6 Jul 2016 11:22:53 +0300 Subject: [PATCH] rtspsrc: Fix error messages to first convert to doubles before division --- gst/rtsp/gstrtspsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 4c6a47edbc..58bed885e6 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -4898,7 +4898,7 @@ gst_rtspsrc_reconnect (GstRTSPSrc * src, gboolean async) GST_ELEMENT_WARNING (src, RESOURCE, READ, (NULL), ("Could not receive any UDP packets for %.4f seconds, maybe your " "firewall is blocking it. Retrying using a tcp connection.", - gst_guint64_to_gdouble (src->udp_timeout / 1000000.0))); + gst_guint64_to_gdouble (src->udp_timeout) / 1000000.0)); } /* unless redirect, open new connection using tcp */ @@ -4920,7 +4920,7 @@ no_protocols: GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL), ("Could not receive any UDP packets for %.4f seconds, maybe your " "firewall is blocking it. No other protocols to try.", - gst_guint64_to_gdouble (src->udp_timeout / 1000000.0))); + gst_guint64_to_gdouble (src->udp_timeout) / 1000000.0)); return GST_RTSP_ERROR; } open_failed: