Commit 60d58695 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_GetCPUCount: no need to call getpid()

parent 1f8faf15
......@@ -996,7 +996,7 @@ unsigned vlc_GetCPUCount(void)
cpu_set_t cpu;
CPU_ZERO(&cpu);
if (sched_getaffinity (getpid(), sizeof (cpu), &cpu) < 0)
if (sched_getaffinity (0, sizeof (cpu), &cpu) < 0)
return 1;
return CPU_COUNT (&cpu);
......
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