diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-27 15:04:13 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:11:43 +0200 |
commit | 41d25ebcc8bc8601bd66f5435c75fdff25cadc17 (patch) | |
tree | 6cf36aab161902d1b1cd508e89e0acfaf1592c18 /stream/asf_streaming.c | |
parent | e55135212138800f0107247c1f3ded81366cd123 (diff) | |
download | mpv-41d25ebcc8bc8601bd66f5435c75fdff25cadc17.tar.bz2 mpv-41d25ebcc8bc8601bd66f5435c75fdff25cadc17.tar.xz |
stream: 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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31566 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/asf_streaming.c')
-rw-r--r-- | stream/asf_streaming.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/asf_streaming.c b/stream/asf_streaming.c index baf42c748d..94563ef0f1 100644 --- a/stream/asf_streaming.c +++ b/stream/asf_streaming.c @@ -727,7 +727,7 @@ static int asf_http_streaming_start( stream_t *stream, int *demuxer_type ) { http_hdr = asf_http_request( stream->streaming_ctrl ); mp_msg(MSGT_NETWORK,MSGL_DBG2,"Request [%s]\n", http_hdr->buffer ); for(i=0; i < (int)http_hdr->buffer_size ; ) { - int r = send( fd, http_hdr->buffer+i, http_hdr->buffer_size-i, 0 ); + int r = send( fd, http_hdr->buffer+i, http_hdr->buffer_size-i, DEFAULT_SEND_FLAGS ); if(r <0) { mp_tmsg(MSGT_NETWORK,MSGL_ERR,"socket write error: %s\n",strerror(errno)); goto err_out; |