OSDN Git Service

Bug 4903178 Restore priority and cgroup on stop
authorGlenn Kasten <gkasten@google.com>
Wed, 22 Jun 2011 23:15:25 +0000 (16:15 -0700)
committerGlenn Kasten <gkasten@google.com>
Wed, 16 Nov 2011 22:52:55 +0000 (14:52 -0800)
commit879135196fd1c97deefc538c888037c56c2879a7
tree3ee39136a951bf1fbb25e0b484c3c1b6709c5868
parent5c052218128013d630b4d9a84393ebfbff11f3e8
Bug 4903178 Restore priority and cgroup on stop

On AudioTrack and AudioRecord stop or failed start, restore the priority
and cgroup of the caller to their previous values, rather than forcing
to NORMAL.  Dependent on new thread APIs.

Also fixes bug where priority was set to AUDIO but cgroup not set.

Change-Id: Ib83893918fb4fdf57c6b87884b51038997a631d8
include/media/AudioRecord.h
include/media/AudioTrack.h
media/libmedia/AudioRecord.cpp
media/libmedia/AudioTrack.cpp