summaryrefslogtreecommitdiffstats
path: root/gst/udp
diff options
context:
space:
mode:
authorGustaf Räntilä <g.rantila@gmail.com>2008-05-21 11:38:17 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-05-21 11:38:17 +0000
commit9d494db510d6667140a86315b64d325ae38a98c1 (patch)
tree1ac2928de5b0fa81aa7358494025dc07f8813e4e /gst/udp
parent46d94158bc695821a8bf896398907aef1c6c126a (diff)
gst/udp/gstmultiudpsink.c: Ignore EPERM errors from sendto. Fixes #533619.
Original commit message from CVS: Patch by: Gustaf Räntilä <g dot rantila at gmail dot com> * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_render): Ignore EPERM errors from sendto. Fixes #533619.
Diffstat (limited to 'gst/udp')
-rw-r--r--gst/udp/gstmultiudpsink.c4
1 files changed, 4 insertions, 0 deletions
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;
}