Mercurial > mplayer.hg
comparison libmpdemux/open.c @ 7406:1394aebaa838
removed obsolete VCD_CACHE hack
author | arpi |
---|---|
date | Sun, 15 Sep 2002 18:48:16 +0000 |
parents | 9129781e5939 |
children | 8780415baa87 |
comparison
equal
deleted
inserted
replaced
7405:c1d517db8d95 | 7406:1394aebaa838 |
---|---|
81 | 81 |
82 stream_t* open_stream(char* filename,int vcd_track,int* file_format){ | 82 stream_t* open_stream(char* filename,int vcd_track,int* file_format){ |
83 stream_t* stream=NULL; | 83 stream_t* stream=NULL; |
84 int f=-1; | 84 int f=-1; |
85 off_t len; | 85 off_t len; |
86 #ifdef VCD_CACHE | |
87 int vcd_cache_size=128; | |
88 #endif | |
89 #ifdef __FreeBSD__ | 86 #ifdef __FreeBSD__ |
90 int bsize = VCD_SECTOR_SIZE; | 87 int bsize = VCD_SECTOR_SIZE; |
91 #endif | 88 #endif |
92 | 89 |
93 #ifdef HAVE_CDDA | 90 #ifdef HAVE_CDDA |
109 if(ret2<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ErrTrackSelect " (get)\n");return NULL;} | 106 if(ret2<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ErrTrackSelect " (get)\n");return NULL;} |
110 ret=vcd_seek_to_track(f,vcd_track); | 107 ret=vcd_seek_to_track(f,vcd_track); |
111 if(ret<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ErrTrackSelect " (seek)\n");return NULL;} | 108 if(ret<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ErrTrackSelect " (seek)\n");return NULL;} |
112 // seek_to_byte+=ret; | 109 // seek_to_byte+=ret; |
113 mp_msg(MSGT_OPEN,MSGL_V,"VCD start byte position: 0x%X end: 0x%X\n",ret,ret2); | 110 mp_msg(MSGT_OPEN,MSGL_V,"VCD start byte position: 0x%X end: 0x%X\n",ret,ret2); |
114 #ifdef VCD_CACHE | |
115 vcd_cache_init(vcd_cache_size); | |
116 #endif | |
117 #ifdef __FreeBSD__ | 111 #ifdef __FreeBSD__ |
118 if (ioctl (f, CDRIOCSETBLOCKSIZE, &bsize) == -1) { | 112 if (ioctl (f, CDRIOCSETBLOCKSIZE, &bsize) == -1) { |
119 perror ( "Error in CDRIOCSETBLOCKSIZE"); | 113 perror ( "Error in CDRIOCSETBLOCKSIZE"); |
120 } | 114 } |
121 #endif | 115 #endif |