Commit 8378d01f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: use GetNativeSystemInfo to get the processor count

parent e98d0a82
......@@ -909,12 +909,11 @@ unsigned vlc_timer_getoverrun (vlc_timer_t timer)
/*** CPU ***/
unsigned vlc_GetCPUCount (void)
{
DWORD_PTR process;
DWORD_PTR system;
SYSTEM_INFO systemInfo;
if (GetProcessAffinityMask (GetCurrentProcess(), &process, &system))
return popcount (system);
return 1;
GetNativeSystemInfo(&systemInfo);
return systemInfo.dwNumberOfProcessors;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment