diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-03-13 18:28:59 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-03-13 18:28:59 +0100 |
commit | 469aced5810b094f05d628d1d447b6430ae0d483 (patch) | |
tree | 9274017c566c5a71a29451bf15cfb2b451be1ad4 /gst/udp/gstudpnetutils.h | |
parent | a32581abeea9264bba014f5e03063ee60f9c4bdb (diff) |
udpsrc: Add network interface selection
Add network interface selection when joining multicast groups.
Useful when using the udpsrc on multihomed hosts.
Fixes #575234.
API: GstUDPSrc::multicast-iface
Diffstat (limited to 'gst/udp/gstudpnetutils.h')
-rw-r--r-- | gst/udp/gstudpnetutils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/udp/gstudpnetutils.h b/gst/udp/gstudpnetutils.h index 3e5b297a..04d847cd 100644 --- a/gst/udp/gstudpnetutils.h +++ b/gst/udp/gstudpnetutils.h @@ -40,6 +40,7 @@ #else #include <sys/time.h> #include <netinet/in.h> +#include <net/if.h> #include <netdb.h> #include <sys/socket.h> #include <sys/wait.h> @@ -81,7 +82,8 @@ int gst_udp_is_multicast (struct sockaddr_storage *addr); int gst_udp_set_loop_ttl (int sockfd, gboolean loop, int ttl); -int gst_udp_join_group (int sockfd, struct sockaddr_storage *addr); +int gst_udp_join_group (int sockfd, struct sockaddr_storage *addr, + gchar *iface); int gst_udp_leave_group (int sockfd, struct sockaddr_storage *addr); #endif /* __GST_UDP_NET_UTILS_H__*/ |