diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-09-29 11:09:40 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-09-29 11:09:40 +0000 |
commit | fcd901a5bf0edad1eb198758da293d0ec34269cf (patch) | |
tree | 814dbd8e3e28f748b491f914df22bcdc9093c085 /gst/udp/gstudpsrc.h | |
parent | e8c59d9da35e716049f89ce213f374556997e9df (diff) |
gst/udp/gstudpsrc.*: Added property to post a message on timeout.
Original commit message from CVS:
* gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_init),
(gst_udpsrc_create), (gst_udpsrc_set_property),
(gst_udpsrc_get_property), (gst_udpsrc_unlock), (gst_udpsrc_stop):
* gst/udp/gstudpsrc.h:
Added property to post a message on timeout.
Updated docs.
When restarting the select, initialize the fdsets again.
Init control sockets so we don't accidentally close a random socket.
API: GstUDPSrc::timeout property
Diffstat (limited to 'gst/udp/gstudpsrc.h')
-rw-r--r-- | gst/udp/gstudpsrc.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/gst/udp/gstudpsrc.h b/gst/udp/gstudpsrc.h index 4b0b152b..0730cadf 100644 --- a/gst/udp/gstudpsrc.h +++ b/gst/udp/gstudpsrc.h @@ -52,19 +52,20 @@ struct _GstUDPSrc { GstPushSrc parent; /* properties */ - gchar *uri; - int port; - gchar *multi_group; - gint ttl; - gint buffer_size; - - int sock; - int control_sock[2]; + gchar *uri; + int port; + gchar *multi_group; + gint ttl; + GstCaps *caps; + gint buffer_size; + guint64 timeout; - struct sockaddr_in myaddr; - struct ip_mreq multi_addr; + /* our sockets */ + int sock; + int control_sock[2]; - GstCaps *caps; + struct sockaddr_in myaddr; + struct ip_mreq multi_addr; }; struct _GstUDPSrcClass { |