Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
36d2510c
Commit
36d2510c
authored
Oct 22, 2014
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LibVLC: fix crash when getMachineSpecs() return null
It can happen with libvlcjni.so library is not found.
parent
0e6d442b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vlc-android/src/org/videolan/libvlc/LibVLC.java
vlc-android/src/org/videolan/libvlc/LibVLC.java
+2
-0
No files found.
vlc-android/src/org/videolan/libvlc/LibVLC.java
View file @
36d2510c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment