[PATCH] [dvdread] Add support for Darwin hosts
Another change that was added to xine-lib (and wasn't updated in the diff file for libdvdnav by the way), this patch adds support for opening the Darwin version of libdvdcss. I've been looking to submit a proper patch to libdvdread upstream too, but the libdvdread code doesn't even support Win32 at the moment, so I'll have to look at that first. -- Diego "Flameeyes" Pettenò http://farragut.flameeyes.is-a-geek.org/
Diego 'Flameeyes' Pettenò wrote:
Another change that was added to xine-lib (and wasn't updated in the diff file for libdvdnav by the way), this patch adds support for opening the Darwin version of libdvdcss.
I've been looking to submit a proper patch to libdvdread upstream too, but the libdvdread code doesn't even support Win32 at the moment, so I'll have to look at that first.
good -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vuoi diventare un vero esperto sul Controllo di Gestione? Scopri come nella tua azienda puoi migliorare gli utili e ridurre le spese Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mida97&d-4
Hello, On Wed, Apr 18, 2007 at 10:50:20AM +0200, Diego 'Flameeyes' Petten? wrote:
Index: src/dvdread/dvd_input.c =================================================================== --- src/dvdread/dvd_input.c (revision 880) +++ src/dvdread/dvd_input.c (working copy) @@ -287,10 +287,12 @@ #else /* dlopening libdvdcss */
-#ifndef WIN32 +#ifdef __APPLE__ + dvdcss_library = dlopen("libdvdcss.2.dylib", RTLD_LAZY); +#elif defined(WIN32) + dvdcss_library = dlopen("libdvdcss.dll", RTLD_LAZY); +#else dvdcss_library = dlopen("libdvdcss.so.2", RTLD_LAZY); -#else - dvdcss_library = dlopen("libdvdcss.dll", RTLD_LAZY); #endif
if(dvdcss_library != NULL) { @@ -323,7 +325,7 @@ dvdcss_library = NULL; } else if(!DVDcss_open || !DVDcss_close || !DVDcss_title || !DVDcss_seek || !DVDcss_read || !DVDcss_error || !dvdcss_version) { - fprintf(stderr, "libdvdread: Missing symbols in libdvdcss.so.2, " + fprintf(stderr, "libdvdread: Missing symbols in libdvdcss.so, "
Unrelated? Esp. since the linux name above still is with the .2. Maybe just defining the name is better, something like #ifdef __APPLE__ #define CSS_LIB "libdvdcss.2.dylib" #elif defined(WIN32) ... dvdcss_library = dlopen(CSS_LIB, RTLD_LAZY); and using the define in the printf as well. Greetings, Reimar Döffinger
Reimar Döffinger wrote:
Unrelated? Esp. since the linux name above still is with the .2. Maybe just defining the name is better, something like #ifdef __APPLE__ #define CSS_LIB "libdvdcss.2.dylib" #elif defined(WIN32) ...
dvdcss_library = dlopen(CSS_LIB, RTLD_LAZY); and using the define in the printf as well.
yes, it's cleaner -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vuoi diventare un vero esperto sul Controllo di Gestione? Scopri come nella tua azienda puoi migliorare gli utili e ridurre le spese Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mida97&d-4
On Wed, 18 Apr 2007 15:09:47 +0200 Reimar Döffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> wrote:
Unrelated? Not unrelated, but yeah I like your way better too.
-- Diego "Flameeyes" Pettenò http://farragut.flameeyes.is-a-geek.org/
participants (4)
-
Diego 'Flameeyes' Pettenò -
Nico Sabbi -
Nico Sabbi -
Reimar Döffinger