Mercurial > mplayer.hg
diff libmpdemux/cdd.h @ 16935:60bd6aeed405
make it optionally possible to compile MPlayer with libcdio instead of libcdparanoia
patch by Erik Lunchpail <erik_27can at yahoo.com>
base on patch by Rocky Bernstein <rocky at panix.com>
minor modification by myself
author | faust3 |
---|---|
date | Sun, 06 Nov 2005 17:42:20 +0000 |
parents | 60624e692b95 |
children |
line wrap: on
line diff
--- a/libmpdemux/cdd.h Sun Nov 06 16:17:17 2005 +0000 +++ b/libmpdemux/cdd.h Sun Nov 06 17:42:20 2005 +0000 @@ -1,8 +1,14 @@ #ifndef __CDD_H__ #define __CDD_H__ +#include "config.h" +#ifndef HAVE_LIBCDIO #include <cdda_interface.h> #include <cdda_paranoia.h> +#else +#include <cdio/cdda.h> +#include <cdio/paranoia.h> +#endif typedef struct { char cddb_hello[1024]; @@ -48,8 +54,13 @@ } cd_info_t; typedef struct { +#ifndef HAVE_LIBCDIO cdrom_drive* cd; cdrom_paranoia* cdp; +#else + cdrom_drive_t* cd; + cdrom_paranoia_t* cdp; +#endif int sector; int start_sector; int end_sector;