[Android] Use also GenuineIntel to check for x86 presence

Jean-Baptiste Kempf git at videolan.org
Fri Jul 4 23:52:28 CEST 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jul  4 23:52:08 2014 +0200| [c28408482847c05cf128a0021e7707dd4334c8f5] | committer: Jean-Baptiste Kempf

Use also GenuineIntel to check for x86 presence

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c28408482847c05cf128a0021e7707dd4334c8f5
---

 vlc-android/src/org/videolan/libvlc/LibVlcUtil.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
index e5a12b8..cbc45f4 100644
--- a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
+++ b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
@@ -147,6 +147,8 @@ public class LibVlcUtil {
                 // (see kernel sources arch/x86/kernel/cpu/proc.c)
                 if(line.contains("clflush size"))
                     hasX86 = true;
+                if(line.contains("GenuineIntel"))
+                    hasX86 = true;
                 // "microsecond timers" is specific to MIPS.
                 // see arch/mips/kernel/proc.c
                 if(line.contains("microsecond timers"))



More information about the Android mailing list