Fix cpu cores detection on OS X

https://bugzilla.gnome.org/show_bug.cgi?id=664687
This commit is contained in:
Matej Knopp 2011-11-24 00:41:27 +01:00 committed by Tim-Philipp Müller
parent 1e147bf88e
commit 7dd07ed7fb

View file

@ -463,7 +463,7 @@ gst_ffmpeg_auto_max_threads (void)
int mib[] = { CTL_HW, HW_NCPU };
size_t dataSize = sizeof (int);
if (sysctl (mib, 2, &n_threads, &dataSize, NULL, 0)) {
if (sysctl (mib, 2, &n, &dataSize, NULL, 0)) {
n = 1;
}
}