Skip to content
Snippets Groups Projects
Commit ae1a7f9a authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Workaround for null MachineSpecs in getResampler()

(cherry picked from commit 848fad5b)
parent fd3060c4
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ public class VLCOptions {
private static String getResampler() {
final VLCUtil.MachineSpecs m = VLCUtil.getMachineSpecs();
return m.processors > 2 ? "soxr" : "ugly";
return (m == null || m.processors > 2) ? "soxr" : "ugly";
}
public static void setMediaOptions(Media media, Context context, int flags) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment