From cbec4b2d9dbad5fb67e95b16db6a960b7860c239 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Mon, 27 Oct 2008 08:36:43 +0000 Subject: gst/udp/: Fix "argument type mismatch" compiler warnings on Windows. Original commit message from CVS: Patch by: * gst/udp/gstdynudpsink.c: (gst_dynudpsink_render): * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_render): * gst/udp/gstudpsrc.c: (gst_udpsrc_create): Fix "argument type mismatch" compiler warnings on Windows. Fixes bug #557293. --- gst/udp/gstmultiudpsink.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gst/udp/gstmultiudpsink.c') diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c index 2044c83b..d43f1ff9 100644 --- a/gst/udp/gstmultiudpsink.c +++ b/gst/udp/gstmultiudpsink.c @@ -395,9 +395,12 @@ gst_multiudpsink_render (GstBaseSink * bsink, GstBuffer * buffer) GST_LOG_OBJECT (sink, "sending %d bytes to client %p", size, client); while (TRUE) { +#ifdef G_OS_WIN32 + ret = sendto (*client->sock, (char *) data, size, 0, +#else ret = sendto (*client->sock, data, size, 0, +#endif (struct sockaddr *) &client->theiraddr, sizeof (client->theiraddr)); - if (ret < 0) { /* we get a non-posix EPERM on Linux when a firewall rule blocks this * destination. We will simply ignore this. */ -- cgit