From: LRN Date: Tue, 30 Jun 2009 17:35:37 +0000 (+0400) Subject: Don't use sendmsg()-dependent code on Windows X-Git-Tag: RELEASE-0.10.16~377 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=122d40a742b18ddaf8873d9c700f87738bd74f38;p=platform%2Fupstream%2Fgst-plugins-good.git Don't use sendmsg()-dependent code on Windows Fixes #585842 --- diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c index ac4c130..68eea75 100644 --- a/gst/udp/gstmultiudpsink.c +++ b/gst/udp/gstmultiudpsink.c @@ -117,8 +117,10 @@ static void gst_multiudpsink_finalize (GObject * object); static GstFlowReturn gst_multiudpsink_render (GstBaseSink * sink, GstBuffer * buffer); +#ifndef G_OS_WIN32 /*sendmsg() is not available on Windows*/ static GstFlowReturn gst_multiudpsink_render_list (GstBaseSink * bsink, GstBufferList * list); +#endif static GstStateChangeReturn gst_multiudpsink_change_state (GstElement * element, GstStateChange transition); @@ -320,7 +322,9 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass) gstelement_class->change_state = gst_multiudpsink_change_state; gstbasesink_class->render = gst_multiudpsink_render; +#ifndef G_OS_WIN32 gstbasesink_class->render_list = gst_multiudpsink_render_list; +#endif klass->add = gst_multiudpsink_add; klass->remove = gst_multiudpsink_remove; klass->clear = gst_multiudpsink_clear; @@ -430,6 +434,7 @@ gst_multiudpsink_render (GstBaseSink * bsink, GstBuffer * buffer) return GST_FLOW_OK; } +#ifndef G_OS_WIN32 static GstFlowReturn gst_multiudpsink_render_list (GstBaseSink * bsink, GstBufferList * list) { @@ -516,6 +521,7 @@ invalid_list: gst_buffer_list_iterator_free (it); return GST_FLOW_ERROR; } +#endif static void gst_multiudpsink_set_clients_string (GstMultiUDPSink * sink,