Mercurial > mplayer.hg
changeset 12545:868376f81c30
Fix hang on broken mmst streams
Patch by adland
author | rtognimp |
---|---|
date | Mon, 07 Jun 2004 19:23:04 +0000 |
parents | b81c451139a3 |
children | 7f8ae1376d6c |
files | libmpdemux/asf_mmst_streaming.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/asf_mmst_streaming.c Mon Jun 07 19:20:33 2004 +0000 +++ b/libmpdemux/asf_mmst_streaming.c Mon Jun 07 19:23:04 2004 +0000 @@ -171,7 +171,7 @@ len = recv (s, &buf[total], count-total, 0); - if (len<0) { + if (len<=0) { perror ("read error:"); return 0; } @@ -538,6 +538,7 @@ asf_header_len = get_header (s, asf_header, stream->streaming_ctrl); // printf("---------------------------------- asf_header %d\n",asf_header); + if (asf_header_len==0) return -1; //error reading header packet_length = interp_header (asf_header, asf_header_len);