From e04f7a828f2580402215ab3bb3ad20d842ec36e2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 18 May 2007 11:39:12 +0000 Subject: gst/rtsp/gstrtspsrc.*: Add TCP timeout property and use it for all TCP connection. Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_class_init), (gst_rtspsrc_set_property), (gst_rtspsrc_get_property), (gst_rtspsrc_stream_configure_udp), (gst_rtspsrc_loop_interleaved), (gst_rtspsrc_loop_udp), (gst_rtspsrc_try_send), (gst_rtspsrc_send), (gst_rtspsrc_setup_streams), (gst_rtspsrc_open): * gst/rtsp/gstrtspsrc.h: Add TCP timeout property and use it for all TCP connection. * gst/rtsp/rtspconnection.c: (rtsp_connection_connect), (rtsp_connection_write), (rtsp_connection_next_timeout), (rtsp_connection_reset_timeout): Make connect and writes cancelable and make them use the timeout. --- gst/rtsp/gstrtspsrc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst/rtsp/gstrtspsrc.h') diff --git a/gst/rtsp/gstrtspsrc.h b/gst/rtsp/gstrtspsrc.h index 3bada066..caf9efe9 100644 --- a/gst/rtsp/gstrtspsrc.h +++ b/gst/rtsp/gstrtspsrc.h @@ -147,7 +147,8 @@ struct _GstRTSPSrc { RTSPLowerTrans protocols; gboolean debug; guint retry; - guint64 timeout; + guint64 udp_timeout; + GTimeVal tcp_timeout; guint latency; /* state */ -- cgit