summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/foundation
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-07-22 09:20:13 -0700
committerAndreas Huber <andih@google.com>2010-07-22 09:21:05 -0700
commit348a8eab84f4bba76c04ca83b2f5418467aa1a48 (patch)
treeb75461fcab7782b8029426e9976b8d805a3b1fd3 /media/libstagefright/foundation
parent66d6f1fcd9cb80a603b833e93779eb0dfb5e67ee (diff)
downloadframeworks_av-348a8eab84f4bba76c04ca83b2f5418467aa1a48.zip
frameworks_av-348a8eab84f4bba76c04ca83b2f5418467aa1a48.tar.gz
frameworks_av-348a8eab84f4bba76c04ca83b2f5418467aa1a48.tar.bz2
Various changes to improve rtsp networking, reduce packet loss and adapt to ALooper API changes.
Change-Id: I110e19d5ce33e597add3ffbd3e3ff3815862396d
Diffstat (limited to 'media/libstagefright/foundation')
-rw-r--r--media/libstagefright/foundation/ALooper.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/libstagefright/foundation/ALooper.cpp b/media/libstagefright/foundation/ALooper.cpp
index cd4f349..77afb01 100644
--- a/media/libstagefright/foundation/ALooper.cpp
+++ b/media/libstagefright/foundation/ALooper.cpp
@@ -73,7 +73,8 @@ void ALooper::unregisterHandler(handler_id handlerID) {
gLooperRoster.unregisterHandler(handlerID);
}
-status_t ALooper::start(bool runOnCallingThread, bool canCallJava) {
+status_t ALooper::start(
+ bool runOnCallingThread, bool canCallJava, int32_t priority) {
if (runOnCallingThread) {
{
Mutex::Autolock autoLock(mLock);
@@ -99,7 +100,7 @@ status_t ALooper::start(bool runOnCallingThread, bool canCallJava) {
mThread = new LooperThread(this, canCallJava);
- status_t err = mThread->run("ALooper");
+ status_t err = mThread->run("ALooper", priority);
if (err != OK) {
mThread.clear();
}