diff stream/librtsp/rtsp.c @ 31500:b01f807eb183

Use MSG_NOSIGNAL flag if available for send(). This avoids MPlayer quitting due to SIGPIPE at least for these cases. Ignoring SIGPIPE in general would break window-closing with some window-managers.
author reimar
date Sun, 27 Jun 2010 15:04:13 +0000
parents 0f1b5b68af32
children 8fa2f43cb760
line wrap: on
line diff
--- a/stream/librtsp/rtsp.c	Sun Jun 27 15:01:24 2010 +0000
+++ b/stream/librtsp/rtsp.c	Sun Jun 27 15:04:13 2010 +0000
@@ -51,6 +51,7 @@
 #include "rtsp.h"
 #include "rtsp_session.h"
 #include "osdep/timer.h"
+#include "stream/network.h"
 
 /*
 #define LOG
@@ -67,7 +68,7 @@
   while (total < len){
     int n;
 
-    n = send (s, &buf[total], len - total, 0);
+    n = send (s, &buf[total], len - total, DEFAULT_SEND_FLAGS);
 
     if (n > 0)
       total += n;