# HG changeset patch # User diego # Date 1183451041 0 # Node ID cfdea6a164da148b2399d591b6c9e0c5cefc7428 # Parent d09f288a71795fedcbc1b42104e9e69db57b1c3d The file is compiled conditional to USE_DVDREAD so the #ifdef USE_DVDREAD in the file are senseless. diff -r d09f288a7179 -r cfdea6a164da stream/stream_dvd.c --- a/stream/stream_dvd.c Tue Jul 03 08:22:39 2007 +0000 +++ b/stream/stream_dvd.c Tue Jul 03 08:24:01 2007 +0000 @@ -121,7 +121,6 @@ #endif } -#ifdef USE_DVDREAD #define LIBDVDREAD_VERSION(maj,min,micro) ((maj)*10000 + (min)*100 + (micro)) /* * Try to autodetect the libdvd-0.9.0 library @@ -139,7 +138,6 @@ char * dvd_audio_stream_types[8] = { "ac3","unknown","mpeg1","mpeg2ext","lpcm","unknown","dts" }; char * dvd_audio_stream_channels[6] = { "mono", "stereo", "unknown", "unknown", "5.1/6.1", "5.1" }; -#endif /* #ifdef USE_DVDREAD */ static struct stream_priv_s { @@ -197,7 +195,6 @@ return 0; } -#ifdef USE_DVDREAD int dvd_chapter_from_cell(dvd_priv_t* dvd,int title,int cell) { pgc_t * cur_pgc; @@ -493,11 +490,8 @@ dvd_set_speed(dvd_device, -1); /* -1 => restore default */ } -#endif /* #ifdef USE_DVDREAD */ - static int fill_buffer(stream_t *s, char *but, int len) { -#ifdef USE_DVDREAD if(s->type == STREAMTYPE_DVD) { off_t pos=dvd_read_sector(s->priv,s->buffer); if(pos>=0) { @@ -505,22 +499,17 @@ s->pos=2048*pos-len; } else len=-1; // error } -#endif return len; } static int seek(stream_t *s, off_t newpos) { -#ifdef USE_DVDREAD s->pos=newpos; // real seek dvd_seek(s->priv,s->pos/2048); -#endif return 1; } static void stream_dvd_close(stream_t *s) { -#ifdef USE_DVDREAD dvd_close(s->priv); -#endif } /** @@ -782,7 +771,6 @@ filename = strdup(stream->url); mp_msg(MSGT_OPEN,MSGL_V,"URL: %s\n", filename); dvd_title = p->title; -#ifdef USE_DVDREAD if(1){ //int ret,ret2; dvd_priv_t *d; @@ -1130,7 +1118,6 @@ stream->priv = (void*)d; return STREAM_OK; } -#endif /* #ifdef USE_DVDREAD */ mp_msg(MSGT_DVD,MSGL_ERR,MSGTR_NoDVDSupport); m_struct_free(&stream_opts,opts); return STREAM_UNSUPORTED;