summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-09 18:57:48 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-09 18:57:48 +0000
commita0897b21c11b2debdbbaee0c90b9051670ad5d6d (patch)
tree0a70d9bdbc95ac45c83bd2f08d02d03017454d87 /stream
parent5adaad47de305a7190d46a1439797806b8c7deb1 (diff)
downloadmpv-a0897b21c11b2debdbbaee0c90b9051670ad5d6d.tar.bz2
mpv-a0897b21c11b2debdbbaee0c90b9051670ad5d6d.tar.xz
Forgotten closesocket on error, patch by
Nicolas Baradakis <nbk sitadelle com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21552 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/asf_mmst_streaming.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stream/asf_mmst_streaming.c b/stream/asf_mmst_streaming.c
index 28b4747c99..d2a265d405 100644
--- a/stream/asf_mmst_streaming.c
+++ b/stream/asf_mmst_streaming.c
@@ -626,7 +626,10 @@ int asf_mmst_streaming_start(stream_t *stream)
asf_header_len = get_header (s, asf_header, stream->streaming_ctrl);
// mp_msg(MSGT_NETWORK,MSGL_INFO,"---------------------------------- asf_header %d\n",asf_header);
- if (asf_header_len==0) return -1; //error reading header
+ if (asf_header_len==0) { //error reading header
+ closesocket(s);
+ return -1;
+ }
packet_length = interp_header (asf_header, asf_header_len);