mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
rtspsrc: don't forget to send keepalive messages
When we operate in TCP mode, still send keepalive messages when we need to. Fixes #612696
This commit is contained in:
parent
43e3e5c0d7
commit
ba6dbaecfc
1 changed files with 11 additions and 2 deletions
|
@ -3014,8 +3014,17 @@ gst_rtspsrc_loop_interleaved (GstRTSPSrc * src)
|
|||
/* get the next timeout interval */
|
||||
gst_rtsp_connection_next_timeout (src->connection, &tv_timeout);
|
||||
|
||||
GST_DEBUG_OBJECT (src, "doing receive with timeout %d seconds",
|
||||
(gint) tv_timeout.tv_sec);
|
||||
/* see if the timeout period expired */
|
||||
if ((tv_timeout.tv_sec | tv_timeout.tv_usec) == 0) {
|
||||
GST_DEBUG_OBJECT (src, "timout, sending keep-alive");
|
||||
/* send keep-alive, ignore the result, a warning will be posted. */
|
||||
gst_rtspsrc_send_keep_alive (src);
|
||||
/* get new timeout */
|
||||
gst_rtsp_connection_next_timeout (src->connection, &tv_timeout);
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (src, "doing receive with timeout %ld seconds, %ld usec",
|
||||
tv_timeout.tv_sec, tv_timeout.tv_usec);
|
||||
|
||||
/* protect the connection with the connection lock so that we can see when
|
||||
* we are finished doing server communication */
|
||||
|
|
Loading…
Reference in a new issue