diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2007-05-18 11:39:12 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-05-18 11:39:12 +0000 |
commit | e04f7a828f2580402215ab3bb3ad20d842ec36e2 (patch) | |
tree | 04c0c83c1afe995d1ae0b7a1753fc0fa2df380d7 /gst/rtsp/gstrtspsrc.h | |
parent | e4720e286ca217afdf43996ebe7e44c2aeab932c (diff) |
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.
Diffstat (limited to 'gst/rtsp/gstrtspsrc.h')
-rw-r--r-- | gst/rtsp/gstrtspsrc.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |