Mercurial > mplayer.hg
comparison libmpdemux/open.c @ 3261:caac174877b7
using #ifdef HAVE_VCD
author | arpi |
---|---|
date | Sat, 01 Dec 2001 23:40:24 +0000 |
parents | b01551d725d4 |
children | baa8b0c0ff30 |
comparison
equal
deleted
inserted
replaced
3260:80e1e29e71e7 | 3261:caac174877b7 |
---|---|
73 #ifdef __FreeBSD__ | 73 #ifdef __FreeBSD__ |
74 int bsize = VCD_SECTOR_SIZE; | 74 int bsize = VCD_SECTOR_SIZE; |
75 #endif | 75 #endif |
76 | 76 |
77 //============ Open VideoCD track ============== | 77 //============ Open VideoCD track ============== |
78 #ifdef HAVE_VCD | |
78 if(vcd_track){ | 79 if(vcd_track){ |
79 int ret,ret2; | 80 int ret,ret2; |
80 if(!filename) filename=DEFAULT_CDROM_DEVICE; | 81 if(!filename) filename=DEFAULT_CDROM_DEVICE; |
81 f=open(filename,O_RDONLY); | 82 f=open(filename,O_RDONLY); |
82 if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CdDevNotfound,filename);return NULL; } | 83 if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CdDevNotfound,filename);return NULL; } |
98 stream=new_stream(f,STREAMTYPE_VCD); | 99 stream=new_stream(f,STREAMTYPE_VCD); |
99 stream->start_pos=ret; | 100 stream->start_pos=ret; |
100 stream->end_pos=ret2; | 101 stream->end_pos=ret2; |
101 return stream; | 102 return stream; |
102 } | 103 } |
104 #endif | |
103 | 105 |
104 //============ Open DVD title ============== | 106 //============ Open DVD title ============== |
105 #ifdef USE_DVDREAD | 107 #ifdef USE_DVDREAD |
106 if(dvd_title){ | 108 if(dvd_title){ |
107 // int ret,ret2; | 109 // int ret,ret2; |