Commit 5b357ce2 authored by Michael Smith's avatar Michael Smith

udp: fix compilation errors on non-windows.

parent 7f980d28
......@@ -75,7 +75,7 @@ struct _GstMultiUDPSink {
gint ttl_mc;
gboolean loop;
gint qos_dscp;
ADDRESS_FAMILY ss_family;
guint16 ss_family;
};
struct _GstMultiUDPSinkClass {
......
......@@ -117,7 +117,7 @@ beach:
}
int
gst_udp_set_loop (int sockfd, ADDRESS_FAMILY ss_family, gboolean loop)
gst_udp_set_loop (int sockfd, guint16 ss_family, gboolean loop)
{
int ret = -1;
int l = (loop == FALSE) ? 0 : 1;
......@@ -153,7 +153,7 @@ gst_udp_set_loop (int sockfd, ADDRESS_FAMILY ss_family, gboolean loop)
}
int
gst_udp_set_ttl (int sockfd, ADDRESS_FAMILY ss_family, int ttl, gboolean is_multicast)
gst_udp_set_ttl (int sockfd, guint16 ss_family, int ttl, gboolean is_multicast)
{
int optname = -1;
int ret = -1;
......
......@@ -86,8 +86,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 (int sockfd, ADDRESS_FAMILY ss_family, gboolean loop);
int gst_udp_set_ttl (int sockfd, ADDRESS_FAMILY ss_family, int ttl, gboolean is_multicast);
int gst_udp_set_loop (int sockfd, guint16 ss_family, gboolean loop);
int gst_udp_set_ttl (int sockfd, guint16 ss_family, int ttl, gboolean is_multicast);
/* multicast groups */
int gst_udp_join_group (int sockfd, struct sockaddr_storage *addr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment