[DVDnav-discuss] r881 - trunk/libdvdnav/src/dvdread/dvd_input.c

Nico Sabbi nsabbi at email.it
Thu Apr 19 13:55:37 CEST 2007


Reimar Doeffinger wrote:

>Hello,
>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
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Problemi di Liquidità? Con Logos Finanziaria 30.000 € in 24 ore a dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi clicca qui
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2907&d=19-4



More information about the DVDnav-discuss mailing list