summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-05 12:34:34 +0100
committerwm4 <wm4@nowhere>2015-01-05 12:34:34 +0100
commitd7dfbc86105ae2ad04a547042140cd12353e65e5 (patch)
tree728c678e61395e45cbaf2a7def317840e8126d7f /wscript_build.py
parent0f4bf347c52543057404e5c36f504ab18b901dba (diff)
downloadmpv-d7dfbc86105ae2ad04a547042140cd12353e65e5.tar.bz2
mpv-d7dfbc86105ae2ad04a547042140cd12353e65e5.tar.xz
player: use libavutil API to get number of CPUs
Our own code was introduced when FFmpeg didn't provide this API (or maybe didn't even have a way to determine the CPU count). But now, av_cpu_count() is available for all FFmpeg/Libav versions we support, and there's no reason to have our own code. libavutil's code seems to be slightly more sophisticated than our's, and it's possible that the detected CPU count is different on some platforms after this change.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 2771bbbbec..c91f5de4c7 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -374,7 +374,6 @@ def build(ctx):
## osdep
( getch2_c ),
( "osdep/io.c" ),
- ( "osdep/numcores.c"),
( "osdep/timer.c" ),
( timer_c ),
( "osdep/threads.c" ),