diff options
author | Glenn Kasten <gkasten@google.com> | 2011-06-01 16:46:29 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2011-06-01 16:46:29 -0700 |
commit | 993fccec5bd0355835f0457064a28c2c13eecc60 (patch) | |
tree | 0eb56a54bed12b02122832758998888e70a86258 /media | |
parent | 50e51b81b1cf2778b99682d918ec1288a3a2593e (diff) | |
download | frameworks_base-993fccec5bd0355835f0457064a28c2c13eecc60.zip frameworks_base-993fccec5bd0355835f0457064a28c2c13eecc60.tar.gz frameworks_base-993fccec5bd0355835f0457064a28c2c13eecc60.tar.bz2 |
Remove unnecessary level of priority indirection
Change-Id: I942d43973c20a7ace8b0d3f78b4da97e45e996c6
Diffstat (limited to 'media')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 4 | ||||
-rw-r--r-- | media/libmedia/AudioTrack.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index f6c4cc7..a41d7ab 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -315,9 +315,9 @@ status_t AudioRecord::start() cblk->bufferTimeoutMs = MAX_RUN_TIMEOUT_MS; cblk->waitTimeMs = 0; if (t != 0) { - t->run("ClientRecordThread", THREAD_PRIORITY_AUDIO_CLIENT); + t->run("ClientRecordThread", ANDROID_PRIORITY_AUDIO); } else { - setpriority(PRIO_PROCESS, 0, THREAD_PRIORITY_AUDIO_CLIENT); + setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_AUDIO); } } else { mActive = 0; diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp index ea44f87..6b4391b 100644 --- a/media/libmedia/AudioTrack.cpp +++ b/media/libmedia/AudioTrack.cpp @@ -342,9 +342,9 @@ void AudioTrack::start() cblk->waitTimeMs = 0; android_atomic_and(~CBLK_DISABLED_ON, &cblk->flags); if (t != 0) { - t->run("AudioTrackThread", THREAD_PRIORITY_AUDIO_CLIENT); + t->run("AudioTrackThread", ANDROID_PRIORITY_AUDIO); } else { - setpriority(PRIO_PROCESS, 0, THREAD_PRIORITY_AUDIO_CLIENT); + setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_AUDIO); } LOGV("start %p before lock cblk %p", this, mCblk); |