summaryrefslogtreecommitdiffstats
path: root/stream/network.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-10 00:34:16 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-10 00:34:16 +0200
commit327463be525b12e3d00d5fa0e8e15d5000fcd27b (patch)
tree37db96b1a1b4b1b941706e4e4c4dcdec9cbd4ed2 /stream/network.c
parent7e90be7093daa79fc26dedac6cfb90e87c8acaff (diff)
parent88a8591bc6ae6b9fdbf293ac75967cb9e21f4875 (diff)
downloadmpv-327463be525b12e3d00d5fa0e8e15d5000fcd27b.tar.bz2
mpv-327463be525b12e3d00d5fa0e8e15d5000fcd27b.tar.xz
Merge svn changes up to r30672
Diffstat (limited to 'stream/network.c')
-rw-r--r--stream/network.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stream/network.c b/stream/network.c
index 3a0a18b622..bd496184e8 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -374,6 +374,9 @@ http_seek( stream_t *stream, off_t pos ) {
if( http_hdr==NULL ) return 0;
+ if( mp_msg_test(MSGT_NETWORK,MSGL_V) )
+ http_debug_hdr( http_hdr );
+
switch( http_hdr->status_code ) {
case 200:
case 206: // OK
@@ -388,7 +391,7 @@ http_seek( stream_t *stream, off_t pos ) {
break;
default:
mp_tmsg(MSGT_NETWORK,MSGL_ERR,"Server returns %d: %s\n", http_hdr->status_code, http_hdr->reason_phrase );
- close( fd );
+ closesocket( fd );
fd = -1;
}
stream->fd = fd;