[Mplayer-cvslog] Small patches for FreeBSD

Vladimir Kushnir vkushnir at Alfacom.net
Wed Jul 11 00:33:13 CEST 2001


Hello,
Atached are 2 small patches: a little bit cleanup for vcd_read_fbsd.c (no
new functionality) and some support for DVD under FreeBSD (for those who
got libcss installed). This last compiles but I couldn't test if it works.
Please test it.

Regards,
Vladimir
-- 
Vladimir Kushnir - vkushnir at Alfacom.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvdauth.diff.gz
Type: application/octet-stream
Size: 1046 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20010711/008956f5/attachment.obj>
-------------- next part --------------
*** /usr/local/src/ncvs/MM/mplayer/main/vcd_read_fbsd.c	Fri Jun 22 01:02:24 2001
--- main/vcd_read_fbsd.c	Tue Jul 10 09:49:02 2001
***************
*** 12,17 ****
--- 12,18 ----
  	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,89 ****
      }
  }
  
- 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){
--- 78,87 ----
      }
  }
  
  static int vcd_read(int fd,char *mem){
! 
        if (pread(fd,&vcd_buf,VCD_SECTOR_SIZE,vcd_get_msf()*VCD_SECTOR_SIZE)
  	 != VCD_SECTOR_SIZE) return 0;  // EOF?
  
        vcd_entry.entry.addr.msf.frame++;
        if (vcd_entry.entry.addr.msf.frame==75){


More information about the MPlayer-cvslog mailing list