Files
MINGW-packages/mingw-w64-farstream/0001-farstream-0.2.4.patch

97 lines
3.3 KiB
Diff

--- farstream-0.2.4/farstream/fs-session.h
+++ farstream-0.2.4/farstream/fs-session.h
@@ -64,7 +64,6 @@
*/
typedef enum _FsDTMFEvent
{
- /*< protected >*/
FS_DTMF_EVENT_0 = 0,
FS_DTMF_EVENT_1 = 1,
FS_DTMF_EVENT_2 = 2,
--- farstream-0.2.4/transmitters/multicast/fs-multicast-transmitter.c
+++ farstream-0.2.4/transmitters/multicast/fs-multicast-transmitter.c
@@ -687,12 +687,12 @@
}
if (setsockopt (sock, IPPROTO_IP, IP_TOS,
- &type_of_service, sizeof (type_of_service)) < 0)
+ (const void*)&type_of_service, sizeof (type_of_service)) < 0)
GST_WARNING ("could not set socket ToS: %s", g_strerror (errno));
#ifdef IPV6_TCLASS
if (setsockopt (sock, IPPROTO_IPV6, IPV6_TCLASS,
- &type_of_service, sizeof (type_of_service)) < 0)
+ (const void*)&type_of_service, sizeof (type_of_service)) < 0)
GST_WARNING ("could not set TCLASS: %s", g_strerror (errno));
#endif
@@ -1223,12 +1223,12 @@
UdpSock *udpsock = item->data;
if (setsockopt (udpsock->fd, IPPROTO_IP, IP_TOS,
- &tos, sizeof (tos)) < 0)
+ (const void*)&tos, sizeof (tos)) < 0)
GST_WARNING ( "could not set socket tos: %s", g_strerror (errno));
#ifdef IPV6_TCLASS
if (setsockopt (udpsock->fd, IPPROTO_IPV6, IPV6_TCLASS,
- &tos, sizeof (tos)) < 0)
+ (const void*)&tos, sizeof (tos)) < 0)
GST_WARNING ("could not set TCLASS: %s", g_strerror (errno));
#endif
}
--- farstream-0.2.4/transmitters/multicast/Makefile.am
+++ farstream-0.2.4/transmitters/multicast/Makefile.am
@@ -21,7 +21,8 @@
$(FS_LIBS) \
$(GST_BASE_LIBS) \
$(GST_LIBS) \
- $(GIO_LIBS)
+ $(GIO_LIBS) \
+ -lws2_32
noinst_HEADERS = \
fs-multicast-transmitter.h \
--- farstream-0.2.4/transmitters/rawudp/fs-rawudp-transmitter.c
+++ farstream-0.2.4/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -618,11 +618,11 @@
fd = g_socket_get_fd (socket);
- if (setsockopt (fd, IPPROTO_IP, IP_TOS, &tos, sizeof (tos)) < 0)
+ if (setsockopt (fd, IPPROTO_IP, IP_TOS, (const void *)&tos, sizeof (tos)) < 0)
GST_WARNING ("could not set socket ToS: %s", g_strerror (errno));
#ifdef IPV6_TCLASS
- if (setsockopt (fd, IPPROTO_IPV6, IPV6_TCLASS, &tos, sizeof (tos)) < 0)
+ if (setsockopt (fd, IPPROTO_IPV6, IPV6_TCLASS, (const void *)&tos, sizeof (tos)) < 0)
GST_WARNING ("could not set TCLASS: %s", g_strerror (errno));
#endif
@@ -1299,11 +1299,11 @@
UdpPort *udpport = item->data;
int fd = g_socket_get_fd (udpport->socket);
- if (setsockopt (fd, IPPROTO_IP, IP_TOS, &tos, sizeof (tos)) < 0)
+ if (setsockopt (fd, IPPROTO_IP, IP_TOS, (const void *)&tos, sizeof (tos)) < 0)
GST_WARNING ( "could not set socket ToS: %s", g_strerror (errno));
#ifdef IPV6_TCLASS
- if (setsockopt (fd, IPPROTO_IPV6, IPV6_TCLASS, &tos, sizeof (tos)) < 0)
+ if (setsockopt (fd, IPPROTO_IPV6, IPV6_TCLASS, (const void *)&tos, sizeof (tos)) < 0)
GST_WARNING ("could not set TCLASS: %s", g_strerror (errno));
#endif
}
--- farstream-0.2.4/transmitters/rawudp/Makefile.am
+++ farstream-0.2.4/transmitters/rawudp/Makefile.am
@@ -27,7 +27,8 @@
$(NICE_LIBS) \
$(GUPNP_LIBS) \
$(GIO_LIBS) \
- -lgstnet-@GST_API_VERSION@
+ -lgstnet-@GST_API_VERSION@ \
+ -lws2_32
noinst_HEADERS = \
fs-rawudp-transmitter.h \