diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-29 19:36:58 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-29 19:36:58 +0000 |
commit | 85cbbc35304f4af162ab4de8b128b71d30dfcadd (patch) | |
tree | 0319aad339e596a1f267992bd116afa71c2a1980 /libmpdemux/asf_streaming.c | |
parent | a2a8724a9330d59f6e5fa1130ac6ad26bbe146a6 (diff) | |
download | mpv-85cbbc35304f4af162ab4de8b128b71d30dfcadd.tar.bz2 mpv-85cbbc35304f4af162ab4de8b128b71d30dfcadd.tar.xz |
Using recv/send instead read/write for proper MinGW support (it's a 4.2BSD standard). Patch by FloDt <flodt8@yahoo.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10207 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/asf_streaming.c')
-rw-r--r-- | libmpdemux/asf_streaming.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/asf_streaming.c b/libmpdemux/asf_streaming.c index 0e3eaf8cdb..4fbe5fbda1 100644 --- a/libmpdemux/asf_streaming.c +++ b/libmpdemux/asf_streaming.c @@ -656,7 +656,7 @@ 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 = write( fd, http_hdr->buffer+i, http_hdr->buffer_size-i ); + int r = send( fd, http_hdr->buffer+i, http_hdr->buffer_size-i, 0 ); if(r <0) { mp_msg(MSGT_NETWORK,MSGL_ERR,"Socket write error : %s\n",strerror(errno)); return -1; @@ -666,7 +666,7 @@ asf_http_streaming_start( stream_t *stream, int *demuxer_type ) { http_free( http_hdr ); http_hdr = http_new_header(); do { - i = read( fd, buffer, BUFFER_SIZE ); + i = recv( fd, buffer, BUFFER_SIZE, 0 ); //printf("read: %d\n", i ); if( i<=0 ) { perror("read"); |