From: David S. <ds...@pd...> - 2004-07-02 18:02:28
|
CVS Root: /home/cvs/gstreamer Module: gst-plugins Changes by: ds Date: Sat Jul 03 2004 04:02:27 EST Log message: * gst/tcp/gstmultifdsink.c: (gst_multifdsink_handle_client_write): Most systems don't have MSG_NOSIGNAL. Modified files: . : ChangeLog gst/tcp : gstmultifdsink.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ChangeLog.diff?r1=1.832&r2=1.833 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/tcp/gstmultifdsink.c.diff?r1=1.5&r2=1.6 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/ChangeLog,v retrieving revision 1.832 retrieving revision 1.833 diff -u -d -r1.832 -r1.833 --- ChangeLog 2 Jul 2004 10:02:12 -0000 1.832 +++ ChangeLog 2 Jul 2004 18:02:14 -0000 1.833 @@ -1,3 +1,8 @@ +2004-07-02 David Schleef <ds...@sc...> + + * gst/tcp/gstmultifdsink.c: (gst_multifdsink_handle_client_write): + Most systems don't have MSG_NOSIGNAL. 2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org> * Makefile.am: Index: gstmultifdsink.c RCS file: /home/cvs/gstreamer/gst-plugins/gst/tcp/gstmultifdsink.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- gstmultifdsink.c 29 Jun 2004 10:28:29 -0000 1.5 +++ gstmultifdsink.c 2 Jul 2004 18:02:15 -0000 1.6 @@ -560,9 +560,13 @@ maxsize = GST_BUFFER_SIZE (head) - client->bufoffset; /* try to write the complete buffer */ +#ifdef MSG_NOSIGNAL +#define FLAGS MSG_NOSIGNAL +#else +#define FLAGS 0 +#endif wrote = - send (fd, GST_BUFFER_DATA (head) + client->bufoffset, maxsize, - MSG_NOSIGNAL); + send (fd, GST_BUFFER_DATA (head) + client->bufoffset, maxsize, FLAGS); if (wrote < 0) { /* hmm error.. */ if (errno == EAGAIN) { |