Fix checking build version for OpenH264

This commit is contained in:
Erwan Croze 2016-11-14 14:54:10 +01:00
parent 491c4d99e7
commit 76b6d803bc

View file

@ -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;
}