diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-02-02 17:13:38 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-02-02 17:13:38 +0800 |
commit | 5f94b9bffd724723454637418caa64865d872bbd (patch) | |
tree | acd36b2b49b9201c166d7c0976fad2995b18d936 /audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c | |
parent | 8094195d4a2bfb35f585071e0c82efe664533636 (diff) | |
download | marcuscom-ports-5f94b9bffd724723454637418caa64865d872bbd.tar marcuscom-ports-5f94b9bffd724723454637418caa64865d872bbd.tar.gz marcuscom-ports-5f94b9bffd724723454637418caa64865d872bbd.tar.bz2 marcuscom-ports-5f94b9bffd724723454637418caa64865d872bbd.tar.lz marcuscom-ports-5f94b9bffd724723454637418caa64865d872bbd.tar.xz marcuscom-ports-5f94b9bffd724723454637418caa64865d872bbd.tar.zst marcuscom-ports-5f94b9bffd724723454637418caa64865d872bbd.zip |
Update to 0.9.3.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5605 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c')
-rw-r--r-- | audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c b/audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c index fdbf98e76..02b36912b 100644 --- a/audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c +++ b/audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c @@ -1,27 +1,26 @@ ---- daapsharing/rb-daap-src.c.orig Sun Oct 16 05:50:21 2005 -+++ daapsharing/rb-daap-src.c Mon Oct 17 10:30:20 2005 +--- daapsharing/rb-daap-src.c.orig Fri Jan 27 21:11:13 2006 ++++ daapsharing/rb-daap-src.c Thu Feb 2 02:07:48 2006 @@ -34,6 +34,7 @@ #include <sys/ioctl.h> #include <netdb.h> #include <unistd.h> +#include <signal.h> + #include <ctype.h> - #include <libgnome/gnome-i18n.h> - #include <gst/gst.h> -@@ -580,7 +581,15 @@ gst_tcp_socket_write (int socket, const + #include <libsoup/soup-headers.h> +@@ -435,7 +436,14 @@ rb_daap_src_write (RBDAAPSrc *src, const size_t bytes_written = 0; while (bytes_written < count) { -- ssize_t wrote = send (socket, buf + bytes_written, count - bytes_written, MSG_NOSIGNAL); +- ssize_t wrote = send (src->sock_fd, buf + bytes_written, count - bytes_written, MSG_NOSIGNAL); + ssize_t wrote; +#ifdef MSG_NOSIGNAL -+ wrote = send (socket, buf + bytes_written, count - bytes_written, MSG_NOSIGNAL); ++ wrote = send (src->sock_fd, buf + bytes_written, count - bytes_written, MSG_NOSIGNAL); +#else + signal (SIGPIPE, SIG_IGN); -+ wrote = send (socket, buf + bytes_written, count - bytes_written, 0); ++ wrote = send (src->sock_fd, buf + bytes_written, count - bytes_written, 0); + signal (SIGPIPE, SIG_DFL); +#endif -+ - if (wrote <= 0) { - return bytes_written; + if (wrote < 0) { + GST_WARNING ("error while writing: %s", g_strerror (errno)); |