From 28142d9549c0c5667336a26af7923425b44eec09 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Thu, 24 Nov 2011 00:41:27 +0100 Subject: [PATCH] Fix cpu cores detection on OS X https://bugzilla.gnome.org/show_bug.cgi?id=664687 --- ext/ffmpeg/gstffmpegutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ffmpeg/gstffmpegutils.c b/ext/ffmpeg/gstffmpegutils.c index d0399141b1..4c5bd1e835 100644 --- a/ext/ffmpeg/gstffmpegutils.c +++ b/ext/ffmpeg/gstffmpegutils.c @@ -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; } }