[DVDnav-discuss] r881 - trunk/libdvdnav/src/dvdread/dvd_input.c
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Apr 19 17:45:51 CEST 2007
Hello,
On Thu, Apr 19, 2007 at 01:55:37PM +0200, Nico Sabbi wrote:
> Reimar Doeffinger wrote:
> > On Thu, Apr 19, 2007 at 12:34:52AM +0200, nicodvb wrote:
> >
> >> -#ifndef WIN32
> >> - dvdcss_library = dlopen("libdvdcss.so.2", RTLD_LAZY);
> >> +#ifdef __APPLE__
> >> + #define CSS_LIB "libdvdcss.2.dylib"
> >> + dvdcss_library = dlopen(CSS_LIB, RTLD_LAZY);
> >> +#elif defined(WIN32)
> >> + #define CSS_LIB "libdvdcss.dll"
> >> + dvdcss_library = dlopen(CSS_LIB, RTLD_LAZY);
> >> #else
> >> - dvdcss_library = dlopen("libdvdcss.dll", RTLD_LAZY);
> >> + #define CSS_LIB "libdvdcss.so.2"
> >> + dvdcss_library = dlopen(CSS_LIB, RTLD_LAZY);
> >> #endif
> >>
> >
> > Am I completely blind or is that dlopen duplicated exactly the same way
> > in all cases instead of putting it just once outside?
> >
>
> indeed, feel free to move it outside
Done.
Greetings,
Reimar Döffinger
More information about the DVDnav-discuss
mailing list