[Mplayer-cvslog] CVS: main vcd_read_fbsd.c,1.3,1.4

Jürgen Keil jkeil at mplayer.dev.hu
Fri Jul 13 10:44:54 CEST 2001


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

Modified Files:
	vcd_read_fbsd.c 
Log Message:
Minor code cleanup from Vladimir Kushnir


Index: vcd_read_fbsd.c
===================================================================
RCS file: /cvsroot/mplayer/main/vcd_read_fbsd.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vcd_read_fbsd.c	21 Jun 2001 00:06:40 -0000	1.3
+++ vcd_read_fbsd.c	13 Jul 2001 08:44:51 -0000	1.4
@@ -12,6 +12,7 @@
 	uint8_t spare           [4];
 } cdsector_t;
 
+static cdsector_t vcd_buf;
 static struct ioc_read_toc_single_entry vcd_entry;
 
 static inline void vcd_set_msf(unsigned int sect){
@@ -77,13 +78,10 @@
     }
 }
 
-static cdsector_t vcd_buf;
-
 static int vcd_read(int fd,char *mem){
-	off_t offset = 0;
+
       if (pread(fd,&vcd_buf,VCD_SECTOR_SIZE,vcd_get_msf()*VCD_SECTOR_SIZE)
 	 != VCD_SECTOR_SIZE) return 0;  // EOF?
-      offset++;
 
       vcd_entry.entry.addr.msf.frame++;
       if (vcd_entry.entry.addr.msf.frame==75){




More information about the MPlayer-cvslog mailing list