summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Hoving <sh@bigbrother.nl>2016-07-06 11:22:53 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-07-06 11:22:53 +0300
commitec59291b2e869e8c4339cc6cc60963409e63a58d (patch)
tree9f988b1d7fde452ca6a701a6b9dbf4fc420ae745
parent74af80138e8541f75dd9ae9d04dc8641e38627ab (diff)
rtspsrc: Fix error messages to first convert to doubles before division
-rw-r--r--gst/rtsp/gstrtspsrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 4c6a47edb..58bed885e 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: