mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
Fix cpu cores detection on OS X
https://bugzilla.gnome.org/show_bug.cgi?id=664687
This commit is contained in:
parent
6c290ab6de
commit
28142d9549
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue