From 9d494db510d6667140a86315b64d325ae38a98c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20R=C3=A4ntil=C3=A4?= Date: Wed, 21 May 2008 11:38:17 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ gst/udp/gstmultiudpsink.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6395bd0f92..cab257041a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-21 Wim Taymans + + Patch by: Gustaf Räntilä + + * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_render): + Ignore EPERM errors from sendto. Fixes #533619. + 2008-05-21 Wim Taymans Patch by: Henrik Eriksson diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c index a4209e0314..57bdd09bff 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; }