vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Mon Mar 27 
22:16:23 2017 +0200| [2f5ee597083e00a544a6aabbbd65ab56874b380e] | committer: 
Jean-Baptiste Kempf

Android: use number of available processors

_ONLN is the currently online number of processors, while _CONF
is the number of configured processors, some of which can be disabled.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f5ee597083e00a544a6aabbbd65ab56874b380e
---

 src/android/thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/android/thread.c b/src/android/thread.c
index fcffd7a..ee72cbb 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -417,5 +417,5 @@ mtime_t mdate (void)
 
 unsigned vlc_GetCPUCount(void)
 {
-    return sysconf(_SC_NPROCESSORS_CONF);
+    return sysconf(_SC_NPROCESSORS_ONLN);
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to