projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c290ab
)
Fix cpu cores detection on OS X
author
Matej Knopp
<matej.knopp@gmail.com>
Wed, 23 Nov 2011 23:41:27 +0000
(
00:41
+0100)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Wed, 23 Nov 2011 23:57:01 +0000
(23:57 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=664687
ext/ffmpeg/gstffmpegutils.c
patch
|
blob
|
history
diff --git
a/ext/ffmpeg/gstffmpegutils.c
b/ext/ffmpeg/gstffmpegutils.c
index
d039914
..
4c5bd1e
100644
(file)
--- 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;
}
}