From e2518fedbe8f6eb9cf1cf456381a5e350e2c4001 Mon Sep 17 00:00:00 2001 From: Jarkko Palviainen Date: Mon, 31 Aug 2009 12:13:07 +0200 Subject: udp: split out TTL and loop options Split setting the TTL and loop parameters in 2 methods as they are not related. Fix setting the TTL correctly for multicast streams. See #588245 --- gst/udp/gstudpnetutils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst/udp/gstudpnetutils.h') diff --git a/gst/udp/gstudpnetutils.h b/gst/udp/gstudpnetutils.h index b8f49a73..faaece90 100644 --- a/gst/udp/gstudpnetutils.h +++ b/gst/udp/gstudpnetutils.h @@ -80,7 +80,8 @@ int gst_udp_get_sockaddr_length(struct sockaddr_storage *addr); int gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr); int gst_udp_is_multicast (struct sockaddr_storage *addr); -int gst_udp_set_loop_ttl (int sockfd, gboolean loop, int ttl); +int gst_udp_set_loop (int sockfd, gboolean loop); +int gst_udp_set_ttl (int sockfd, int ttl, gboolean is_multicast); int gst_udp_join_group (int sockfd, struct sockaddr_storage *addr, gchar *iface); -- cgit