[MPlayer-dev-eng] [PATCH] Bugfix and re-enable mpst

Song Du freewizard at gmail.com
Mon Jun 21 01:07:35 CEST 2004


The bug is so ...
TCP never frag locally, so someone said bugs always got reproduced
when connecting to remote server.


Index: netstream.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/netstream.h,v
retrieving revision 1.3
diff -u -r1.3 netstream.h
--- netstream.h 29 May 2003 19:33:33 -0000      1.3
+++ netstream.h 20 Jun 2004 23:02:06 -0000
@@ -53,6 +53,7 @@
       return 0;
     }
     len -= r;
+    buf += r;
   }
   return 1;
 }
@@ -103,6 +104,7 @@
       return 0;
     }
     len -= w;
+    buf += w;
   }
   return 1;
 }
Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.97
diff -u -r1.97 open.c
--- open.c      11 Jun 2004 20:57:03 -0000      1.97
+++ open.c      20 Jun 2004 23:02:11 -0000
@@ -484,6 +484,7 @@
   if (strncmp("tv://", filename, 5) && strncmp("mf://", filename, 5) &&
     strncmp("vcd://", filename, 6) && strncmp("dvb://", filename, 6) &&
     strncmp("cdda://", filename, 7) && strncmp("cddb://", filename, 7) &&
+    strncmp("mpst://", filename, 7) &&
     strstr(filename, "://")) {
      url = url_new(filename);
     }



-- 
freewizard (at) gmail.com 
http://blog.tsing.org/freewizard/




More information about the MPlayer-dev-eng mailing list