[Mplayer-cvslog] CVS: main/libmpdemux asf_mmst_streaming.c, 1.19, 1.20

Roberto Togni CVS syncmail at mplayerhq.hu
Mon Jun 7 21:23:06 CEST 2004


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv19243

Modified Files:
	asf_mmst_streaming.c 
Log Message:
Fix hang on broken mmst streams
Patch by adland


Index: asf_mmst_streaming.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf_mmst_streaming.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- asf_mmst_streaming.c	5 Apr 2004 21:31:27 -0000	1.19
+++ asf_mmst_streaming.c	7 Jun 2004 19:23:04 -0000	1.20
@@ -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);
 
 




More information about the MPlayer-cvslog mailing list