diff options
author | Laurent Glayal <spglegle@yahoo.fr> | 2007-03-29 09:59:23 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-03-29 09:59:23 +0000 |
commit | 112216c22f971c56ad8c3e952b146868180cd157 (patch) | |
tree | d00fe33e3e025d7bcad149a559e3acb16d35dd76 /gst/udp/gstdynudpsink.h | |
parent | d94a696bcd11dd7cf1de4145609788c60ec7f2b7 (diff) |
gst/udp/: Rework the socket allocation a bit based on the sockfd argument so that it becomes usable.
Original commit message from CVS:
Patch by: Laurent Glayal <spglegle at yahoo dot fr>
* gst/udp/gstdynudpsink.c: (gst_dynudpsink_class_init),
(gst_dynudpsink_init), (gst_dynudpsink_set_property),
(gst_dynudpsink_get_property), (gst_dynudpsink_init_send),
(gst_dynudpsink_close):
* gst/udp/gstdynudpsink.h:
* gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_init),
(gst_udpsrc_create), (gst_udpsrc_set_property),
(gst_udpsrc_get_property), (gst_udpsrc_start), (gst_udpsrc_stop):
* gst/udp/gstudpsrc.h:
Rework the socket allocation a bit based on the sockfd argument so that
it becomes usable.
Add a closefd property to instruct the udp elements to close the custom
file descriptors when going to READY. Fixes #423304.
API:GstUDPSrc::closefd property
API:GstDynUDPSink::closefd property
Diffstat (limited to 'gst/udp/gstdynudpsink.h')
-rw-r--r-- | gst/udp/gstdynudpsink.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/udp/gstdynudpsink.h b/gst/udp/gstdynudpsink.h index 0c300c95..f912b8a2 100644 --- a/gst/udp/gstdynudpsink.h +++ b/gst/udp/gstdynudpsink.h @@ -54,7 +54,13 @@ typedef struct _GstDynUDPSinkClass GstDynUDPSinkClass; struct _GstDynUDPSink { GstBaseSink parent; + /* properties */ + gint sockfd; + gboolean closefd; + + /* the socket in use */ int sock; + gboolean externalfd; }; struct _GstDynUDPSinkClass { |