From 570718c2feb3093e2c3a682b48734f4cac20a164 Mon Sep 17 00:00:00 2001 From: Bruno Santos Date: Wed, 21 May 2008 09:56:02 +0000 Subject: gst/udp/gstudpnetutils.*: Provide a bunch of helper methods to deal with IPv4 and IPv6 transparently. Original commit message from CVS: Patch by: Bruno Santos * gst/udp/gstudpnetutils.c: (gst_udp_get_addr), (gst_udp_join_group), (gst_udp_leave_group), (gst_udp_is_multicast): * gst/udp/gstudpnetutils.h: Provide a bunch of helper methods to deal with IPv4 and IPv6 transparently. * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_class_init), (gst_multiudpsink_init), (gst_multiudpsink_set_property), (gst_multiudpsink_get_property), (join_multicast), (gst_multiudpsink_init_send), (gst_multiudpsink_add_internal), (gst_multiudpsink_remove): * gst/udp/gstmultiudpsink.h: Add multicast TTL and loopback properties. Use the helper methods to implement ip4 and ip6. * gst/udp/gstudpsrc.c: (gst_udpsrc_create), (gst_udpsrc_start): * gst/udp/gstudpsrc.h: Use the helper methods to implement ip4 and ip6. Fixes #515962. --- gst/udp/gstudpsrc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gst/udp/gstudpsrc.h') diff --git a/gst/udp/gstudpsrc.h b/gst/udp/gstudpsrc.h index e736a592..597a6a70 100644 --- a/gst/udp/gstudpsrc.h +++ b/gst/udp/gstudpsrc.h @@ -68,8 +68,7 @@ struct _GstUDPSrc { GstPoll *fdset; gboolean externalfd; - struct sockaddr_in myaddr; - struct ip_mreq multi_addr; + struct sockaddr_storage myaddr; }; struct _GstUDPSrcClass { -- cgit