diff options
| author | 2011-09-15 12:25:04 -0700 | |
|---|---|---|
| committer | 2011-09-16 10:44:02 -0700 | |
| commit | 115cac8131e9b2a599ac5f10f9e973487c8fd25c (patch) | |
| tree | 2fa9d409531590d62e39908875102eb952df512d /libs/utils/Threads.cpp | |
| parent | bcba155942705de42174871fc1215b3f4655797b (diff) | |
Various improvements to nuplayer playback
- Drastically cut down the number of times we supply the AudioSink with data
by estimating the time until the sink would run out of data and then scheduling
a refill in advance of that.
- Use a dedicated looper for video decoders since they are currently taking
too long to return from OMX_FillThisBuffer (bug 5325201)
- Revise thread priorities for the OMX dispatcher and software codecs, instead
of running them at ANDROID_PRIORITY_AUDIO, they now only run at
ANDROID_PRIORITY_FOREGROUND
- Since threads created by pthread_create inherit all of the parent threads
attributes including thread priority, briefly reset thread priority to
ANDROID_PRIORITY_FOREGROUND before instantiating OMX components and then
restore it.
Change-Id: If9332a3a20dad5485333d68c11de0d2d5d3fffc3
Diffstat (limited to 'libs/utils/Threads.cpp')
0 files changed, 0 insertions, 0 deletions