Browse Source

Call vlc_CPU_init() when loading a DLL on OS/2 as Win32.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
pull/2/head
KO Myung-Hun 15 years ago
committed by Rémi Denis-Courmont
parent
commit
e208c6eba7
  1. 4
      src/misc/cpu.c

4
src/misc/cpu.c

@ -325,7 +325,9 @@ out:
*/
unsigned vlc_CPU (void)
{
#ifndef WIN32 /* On Windows, initialized from DllMain() instead */
/* On Windows and OS/2,
* initialized from DllMain() and _DLL_InitTerm() respectively, instead */
#if !defined(WIN32) && !defined(__OS2__)
static pthread_once_t once = PTHREAD_ONCE_INIT;
pthread_once (&once, vlc_CPU_init);
#endif

Loading…
Cancel
Save