commit | e5b9b6924007d6658bb1c24e958d16ec82e2a9c3 | [log] [tgz] |
---|---|---|
author | Chong Zhang <chz@google.com> | Thu May 11 11:44:56 2017 -0700 |
committer | Chong Zhang <chz@google.com> | Thu May 11 11:49:22 2017 -0700 |
tree | ad2ef695292ac0178821f89926fbc347f5be056c | |
parent | bbdae2f58c3bd18d72be876c023b4bfb00e2f920 [diff] |
stagefright: put battery update under a separate lock Battery update doesn't need to lock the main lock for mediaplayerservice. Battery update sometimes is called from lower level componenet (eg. StagefrightRecorder), locking the main lock here has potential to deadlock. Puting the battery update in a separate class so that it's clear this is not to be mixed with the rest of the mediaplayerservice states. bug: 38230347 Change-Id: Idf5f26f2b07ad6303775763ce283dad0679843d5