diff options
author | 2001-06-21 00:06:40 +0000 | |
---|---|---|
committer | 2001-06-21 00:06:40 +0000 | |
commit | 83e2caa277f2bb9f8dea60c245fcf219a59c2dc4 (patch) | |
tree | 30dfff489c6b12d9077710a513899674137a6bb0 /mplayer.c | |
parent | 8238dfaadb87e44065375cc58b07cbeccf292cd1 (diff) |
FreeBSD patch by Vladimir Kushnir <vkushnir@Alfacom.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1178 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -22,6 +22,9 @@ #if defined(sun) #define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0" +#elif defined(__FreeBSD__) +#define DEFAULT_CDROM_DEVICE "/dev/cdrom" +#include <sys/cdrio.h> #else #define DEFAULT_CDROM_DEVICE "/dev/cdrom" #endif @@ -491,6 +494,9 @@ float initial_pts_delay=0; #ifdef VCD_CACHE int vcd_cache_size=128; #endif +#ifdef __FreeBSD__ +int bsize = VCD_SECTOR_SIZE; +#endif char* title="MPlayer"; // movie info: @@ -631,6 +637,11 @@ if(vcd_track){ #ifdef VCD_CACHE vcd_cache_init(vcd_cache_size); #endif +#ifdef __FreeBSD__ + if (ioctl (f, CDRIOCSETBLOCKSIZE, &bsize) == -1) { + perror ( "Error in CDRIOCSETBLOCKSIZE"); + } +#endif stream=new_stream(f,STREAMTYPE_VCD); stream->start_pos=ret; stream->end_pos=ret2; |