diff options
author | Dave Sparks <davidsparks@android.com> | 2010-06-17 12:37:15 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-17 12:37:15 -0700 |
commit | f3c6c982f68e6ada3cded6923301d2f6236f3c17 (patch) | |
tree | 6a00273ecdca7f3d3b239663e2124910c3bafc9c /media/libstagefright | |
parent | 78e6622fbb2bacdac68269b60cc694275ae132a4 (diff) | |
parent | 3242cc2719a4aeb64ac5ed273cf222d8d326d44b (diff) | |
download | frameworks_base-f3c6c982f68e6ada3cded6923301d2f6236f3c17.zip frameworks_base-f3c6c982f68e6ada3cded6923301d2f6236f3c17.tar.gz frameworks_base-f3c6c982f68e6ada3cded6923301d2f6236f3c17.tar.bz2 |
am 3242cc27: Merge "TimedEventQueue is apparently important for glitch-free media playback, and so having it inherit its priority from the thread that created it is a bad idea. Instead, set the priority explicitly, and bump it to slightly higher than normal." into fro
Merge commit '3242cc2719a4aeb64ac5ed273cf222d8d326d44b' into gingerbread
* commit '3242cc2719a4aeb64ac5ed273cf222d8d326d44b':
TimedEventQueue is apparently important for glitch-free media playback, and so
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/TimedEventQueue.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/TimedEventQueue.cpp b/media/libstagefright/TimedEventQueue.cpp index 3de8c1d..0dacb53 100644 --- a/media/libstagefright/TimedEventQueue.cpp +++ b/media/libstagefright/TimedEventQueue.cpp @@ -22,11 +22,13 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "TimedEventQueue" #include <utils/Log.h> +#include <utils/threads.h> #include "include/TimedEventQueue.h" #include <sys/prctl.h> #include <sys/time.h> +#include <sys/resource.h> #include <media/stagefright/MediaDebug.h> @@ -206,6 +208,7 @@ void *TimedEventQueue::ThreadWrapper(void *me) { vm->AttachCurrentThread(&env, NULL); #endif + setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_FOREGROUND); static_cast<TimedEventQueue *>(me)->threadEntry(); #ifdef ANDROID_SIMULATOR |