Commit 2e888cb7 authored by Thijs Vermeir's avatar Thijs Vermeir Committed by Wim Taymans
Browse files

rtsp: don't let the rtsp connection timeout

Because we should act before the rtsp server does a timeout, we
reduce the timeout-time with 5 seconds, this should be safe to always
keep te rtsp connection alive.
parent 07505313
......@@ -2486,7 +2486,9 @@ gst_rtsp_connection_next_timeout (GstRTSPConnection * conn, GTimeVal * timeout)
g_return_val_if_fail (conn != NULL, GST_RTSP_EINVAL);
g_return_val_if_fail (timeout != NULL, GST_RTSP_EINVAL);
elapsed = g_timer_elapsed (conn->timer, &usec);
/* Because we should act before the timeout we timeout 5
* seconds in advance. */
elapsed = g_timer_elapsed (conn->timer, &usec) + 5;
if (elapsed >= conn->timeout) {
sec = 0;
usec = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment