[Mplayer-dev-eng] Small patches for FreeBSD

Vladimir Kushnir vkushnir at Alfacom.net
Thu Jul 12 23:34:45 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-dev-eng/attachments/20010713/b3e00f5a/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-dev-eng mailing list