Commit 36d2510c authored by Thomas Guillem's avatar Thomas Guillem

LibVLC: fix crash when getMachineSpecs() return null

It can happen with libvlcjni.so library is not found.
parent 0e6d442b
......@@ -409,6 +409,8 @@ public class LibVLC {
* Skip non-key (3) for all devices that don't meet anything above
*/
LibVlcUtil.MachineSpecs m = LibVlcUtil.getMachineSpecs();
if (m == null)
return ret;
if( (m.hasArmV6 && !(m.hasArmV7)) || m.hasMips )
ret = 4;
else if(m.frequency >= 1200 && m.processors > 2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment