mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
rtspsrc: Remove uneeded keep-alive hack
The rtsp connection code has been fixed now. https://bugzilla.gnome.org/show_bug.cgi?id=744209
This commit is contained in:
parent
987230a759
commit
301a46bd2d
1 changed files with 2 additions and 11 deletions
|
@ -5468,20 +5468,11 @@ gst_rtspsrc_loop_interleaved (GstRTSPSrc * src)
|
||||||
/* get the next timeout interval */
|
/* get the next timeout interval */
|
||||||
gst_rtsp_connection_next_timeout (src->conninfo.connection, &tv_timeout);
|
gst_rtsp_connection_next_timeout (src->conninfo.connection, &tv_timeout);
|
||||||
|
|
||||||
/* 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, only act on interrupt, a warning will be posted for
|
|
||||||
* other errors. */
|
|
||||||
if ((res = gst_rtspsrc_send_keep_alive (src)) == GST_RTSP_EINTR)
|
|
||||||
goto interrupt;
|
|
||||||
/* get new timeout */
|
|
||||||
gst_rtsp_connection_next_timeout (src->conninfo.connection, &tv_timeout);
|
|
||||||
}
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (src, "doing receive with timeout %ld seconds, %ld usec",
|
GST_DEBUG_OBJECT (src, "doing receive with timeout %ld seconds, %ld usec",
|
||||||
tv_timeout.tv_sec, tv_timeout.tv_usec);
|
tv_timeout.tv_sec, tv_timeout.tv_usec);
|
||||||
|
|
||||||
|
gst_rtsp_message_unset (&message);
|
||||||
|
|
||||||
/* protect the connection with the connection lock so that we can see when
|
/* protect the connection with the connection lock so that we can see when
|
||||||
* we are finished doing server communication */
|
* we are finished doing server communication */
|
||||||
res =
|
res =
|
||||||
|
|
Loading…
Reference in a new issue