Mercurial > mplayer.hg
diff stream/librtsp/rtsp_rtp.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 | 69fb7b91bf76 |
line wrap: on
line diff
--- a/stream/librtsp/rtsp_rtp.c Sun Jun 27 15:01:24 2010 +0000 +++ b/stream/librtsp/rtsp_rtp.c Sun Jun 27 15:04:13 2010 +0000 @@ -93,7 +93,7 @@ { char rtcp_content[RTCP_RR_SIZE]; strcpy (rtcp_content, RTCP_RR); - send (st->rtcp_socket, rtcp_content, RTCP_RR_SIZE, 0); + send (st->rtcp_socket, rtcp_content, RTCP_RR_SIZE, DEFAULT_SEND_FLAGS); /* ping RTSP server to keep connection alive. we use OPTIONS instead of PING as not all servers support it */