[Android] VLCOptions: relax the constraint for enabling the soxr resampler

Thomas Guillem git at videolan.org
Thu May 17 18:08:21 CEST 2018


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu May 17 18:07:56 2018 +0200| [f04eb8b73cb2e9556eb58f053429259d882c33e2] | committer: Thomas Guillem

VLCOptions: relax the constraint for enabling the soxr resampler

> https://code.videolan.org/videolan/vlc-android/commit/f04eb8b73cb2e9556eb58f053429259d882c33e2
---

 vlc-android/src/org/videolan/vlc/util/VLCOptions.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
index b55c25a2b..2b5d69577 100644
--- a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
+++ b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
@@ -203,7 +203,7 @@ public class VLCOptions {
 
     private static String getResampler() {
         final VLCUtil.MachineSpecs m = VLCUtil.getMachineSpecs();
-        return (m == null || m.processors > 2) ? "soxr" : "ugly";
+        return (m == null || m.processors >= 2) ? "soxr" : "ugly";
     }
 
     public static void setMediaOptions(Media media, Context context, int flags) {



More information about the Android mailing list