[Android] Fix Threads priority

Geoffrey Métais git at videolan.org
Wed May 2 16:04:48 CEST 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed May  2 16:02:19 2018 +0200| [d5747b73e45bc2d07ffff49cda412cd93b8bebfa] | committer: Geoffrey Métais

Fix Threads priority

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

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

diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index 77a65a3e2..0e525b376 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -76,7 +76,7 @@ public class VLCApplication extends Application {
         @Override
         public Thread newThread(Runnable runnable) {
             final Thread thread = new Thread(runnable);
-            thread.setPriority(Process.THREAD_PRIORITY_DEFAULT+Process.THREAD_PRIORITY_LESS_FAVORABLE);
+            thread.setPriority(Thread.NORM_PRIORITY+Process.THREAD_PRIORITY_LESS_FAVORABLE);
             return thread;
         }
     };



More information about the Android mailing list