From b1a48fb8163214474f66674f288b5ffb253ca1d9 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Thu, 17 Nov 2016 14:43:09 +0100 Subject: [PATCH] learn to code a condition --- java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java b/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java index 8541c9612..616bb2976 100644 --- a/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java +++ b/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java @@ -104,7 +104,7 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory { File file = new File(context.getFilesDir()+"/../lib/libmsopenh264.so"); // Only enable for android <= 5.0 - if (!file.exists() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { + if (!file.exists() || Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { Log.i("LinphoneCoreFactoryImpl"," Openh264 disabled on the project"); return false; }