From 76b6d803bc5efff7eb51f846e9806b07a5f2669d Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Mon, 14 Nov 2016 14:54:10 +0100 Subject: [PATCH] Fix checking build version for OpenH264 --- java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java b/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java index 6c97ea2f2..8541c9612 100644 --- a/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java +++ b/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java @@ -103,8 +103,8 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory { private boolean loadOpenH264(Context context) { 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) { + // Only enable for android <= 5.0 + if (!file.exists() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { Log.i("LinphoneCoreFactoryImpl"," Openh264 disabled on the project"); return false; }