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:
Nicolas Dufresne 2015-03-26 13:08:32 -04:00
parent 987230a759
commit 301a46bd2d

View file

@ -5468,20 +5468,11 @@ gst_rtspsrc_loop_interleaved (GstRTSPSrc * src)
/* get the next timeout interval */
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",
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
* we are finished doing server communication */
res =