gst/rtsp/gstrtspsrc.c: Refactor timeout handling.
authorWim Taymans <wim.taymans@gmail.com>
Fri, 18 May 2007 10:36:12 +0000 (10:36 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 18 May 2007 10:36:12 +0000 (10:36 +0000)
commite4720e286ca217afdf43996ebe7e44c2aeab932c
tree3d4f057cfb00f190df0e2c55015d5a3f4e04b476
parentccd7a136a92b43a94d3db61565352be0a59e3014
gst/rtsp/gstrtspsrc.c: Refactor timeout handling.

Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send_keep_alive),
(gst_rtspsrc_loop_interleaved), (gst_rtspsrc_loop_udp),
(gst_rtspsrc_try_send), (gst_rtspsrc_send),
(gst_rtspsrc_setup_streams):
Refactor timeout handling.
Also send keep-alive when dealing with TCP transport.
* gst/rtsp/rtspconnection.c: (rtsp_connection_create),
(rtsp_connection_free), (rtsp_connection_next_timeout),
(rtsp_connection_reset_timeout):
* gst/rtsp/rtspconnection.h:
Use a timer to handle the session timeouts, add some methods to deal
with timeouts.
ChangeLog
gst/rtsp/gstrtspsrc.c
gst/rtsp/rtspconnection.c
gst/rtsp/rtspconnection.h