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 6c290ab6de
commit 28142d9549

View file

@ -466,7 +466,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;
}
}