diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-07-11 03:22:59 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-07-11 03:22:59 +0000 |
commit | db9d91215d676f9bb7199af91e9e5070ea36eb01 (patch) | |
tree | 1ed51ac9ba566877f9805fb156b7e9e811859d09 /src/input/input_dvd.c | |
parent | d9ec2b8d067a3011f85b9c493d0ed5439086c33d (diff) | |
download | xine-lib-db9d91215d676f9bb7199af91e9e5070ea36eb01.tar.gz xine-lib-db9d91215d676f9bb7199af91e9e5070ea36eb01.tar.bz2 |
Apply patches for Darwin compatibility, SF.net bug 1431220. Thanks to Benjamin Reed.
CVS patchset: 8109
CVS date: 2006/07/11 03:22:59
Diffstat (limited to 'src/input/input_dvd.c')
-rw-r--r-- | src/input/input_dvd.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index eaf60f473..13f88c3d6 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.c @@ -18,7 +18,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_dvd.c,v 1.208 2006/07/10 22:08:15 dgp85 Exp $ + * $Id: input_dvd.c,v 1.209 2006/07/11 03:22:59 dgp85 Exp $ * */ @@ -1783,8 +1783,13 @@ static void *init_class (xine_t *xine, void *data) { _("The path to the device, usually a " "DVD drive, which you intend to use for playing DVDs."), 10, device_change_cb, (void *)this); - - if ((dvdcss = dlopen("libdvdcss.so.2", RTLD_LAZY)) != NULL) { + +#ifdef HOST_OS_DARWIN + if ((dvdcss = dlopen("libdvdcss.2.dylib", RTLD_LAZY)) != NULL) +#else + if ((dvdcss = dlopen("libdvdcss.so.2", RTLD_LAZY)) != NULL) +#endif + { /* we have found libdvdcss, enable the specific config options */ char *raw_device; static char *decrypt_modes[] = { "key", "disc", "title", NULL }; |