udp: fix compilation errors on non-windows.
This commit is contained in:
parent
7f980d28aa
commit
5b357ce22e
@ -75,7 +75,7 @@ struct _GstMultiUDPSink {
|
|||||||
gint ttl_mc;
|
gint ttl_mc;
|
||||||
gboolean loop;
|
gboolean loop;
|
||||||
gint qos_dscp;
|
gint qos_dscp;
|
||||||
ADDRESS_FAMILY ss_family;
|
guint16 ss_family;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstMultiUDPSinkClass {
|
struct _GstMultiUDPSinkClass {
|
||||||
|
@ -117,7 +117,7 @@ beach:
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
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 ret = -1;
|
||||||
int l = (loop == FALSE) ? 0 : 1;
|
int l = (loop == FALSE) ? 0 : 1;
|
||||||
@ -153,7 +153,7 @@ gst_udp_set_loop (int sockfd, ADDRESS_FAMILY ss_family, gboolean loop)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
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 optname = -1;
|
||||||
int ret = -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_get_addr (const char *hostname, int port, struct sockaddr_storage *addr);
|
||||||
int gst_udp_is_multicast (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_loop (int sockfd, guint16 ss_family, gboolean loop);
|
||||||
int gst_udp_set_ttl (int sockfd, ADDRESS_FAMILY ss_family, int ttl, gboolean is_multicast);
|
int gst_udp_set_ttl (int sockfd, guint16 ss_family, int ttl, gboolean is_multicast);
|
||||||
|
|
||||||
/* multicast groups */
|
/* multicast groups */
|
||||||
int gst_udp_join_group (int sockfd, struct sockaddr_storage *addr,
|
int gst_udp_join_group (int sockfd, struct sockaddr_storage *addr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user