From 9d494db510d6667140a86315b64d325ae38a98c1 Mon Sep 17 00:00:00 2001 From: Gustaf Räntilä Date: Wed, 21 May 2008 11:38:17 +0000 Subject: gst/udp/gstmultiudpsink.c: Ignore EPERM errors from sendto. Fixes #533619. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: Gustaf Räntilä * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_render): Ignore EPERM errors from sendto. Fixes #533619. --- gst/udp/gstmultiudpsink.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/udp/gstmultiudpsink.c') diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c index a4209e03..57bdd09b 100644 --- a/gst/udp/gstmultiudpsink.c +++ b/gst/udp/gstmultiudpsink.c @@ -388,6 +388,10 @@ gst_multiudpsink_render (GstBaseSink * bsink, GstBuffer * buffer) (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. */ + if (errno == EPERM) + break; if (errno != EINTR && errno != EAGAIN) { goto send_error; } -- cgit