[Mplayer-cvslog] CVS: main mplayer.c,1.701,1.702

Alex Beregszaszi alex at mplayerhq.hu
Mon Jun 2 20:19:46 CEST 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv6308

Modified Files:
	mplayer.c 
Log Message:
10l

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.701
retrieving revision 1.702
diff -u -r1.701 -r1.702
--- mplayer.c	31 May 2003 21:50:21 -0000	1.701
+++ mplayer.c	2 Jun 2003 18:19:21 -0000	1.702
@@ -3426,11 +3426,11 @@
   // DVD sub:
 if(vo_config_count && vo_spudec) {
   unsigned char* packet=NULL;
-  int len=1,timestamp;
+  int len,timestamp;
   current_module="spudec";
   spudec_heartbeat(vo_spudec,90000*sh_video->timer);
     // Get a sub packet from the dvd or a vobsub and make a timestamp relative to sh_video->timer
-  while(len>0 && packet){
+  while(1) {
     // Vobsub
     len = 0;
     if(vo_vobsub) {
@@ -3450,6 +3450,7 @@
 	mp_dbg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: len=%d  v_pts=%5.3f  s_pts=%5.3f  ts=%d \n",len,sh_video->pts,d_dvdsub->pts,timestamp);
       }
     }
+      if(len<=0 || !packet) break;
       if(timestamp < 0) timestamp = 0;
       spudec_assemble(vo_spudec,packet,len,timestamp);
   }



More information about the MPlayer-cvslog mailing list