summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
diff options
context:
space:
mode:
authorHaynes Mathew George <hgeorge@codeaurora.org>2013-12-06 11:31:57 -0800
committerEric Laurent <elaurent@google.com>2013-12-17 22:06:22 +0000
commit25cb85cd3c96c28f64aae52f9c66c76773aa124c (patch)
tree6376a6e510582d2834f03e03e9fa0dd6f30d9c53 /media/libstagefright/include
parentf81f7a52d4720f441197f75918d2b2c05d41ab45 (diff)
downloadframeworks_av-25cb85cd3c96c28f64aae52f9c66c76773aa124c.zip
frameworks_av-25cb85cd3c96c28f64aae52f9c66c76773aa124c.tar.gz
frameworks_av-25cb85cd3c96c28f64aae52f9c66c76773aa124c.tar.bz2
libstagefright: Delay release of wakelock in TimedEventQueue
Delay release of wakelock in the TimedEventQueue to after an event has been processed. This ensures AP shutdown does not happen while an event is ready but hasn't been processed yet. Bug: 11976087. Change-Id: I71a5f3ac4a57e1d05dd5d9ab5c6f91ed7bb64c87
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r--media/libstagefright/include/TimedEventQueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/include/TimedEventQueue.h b/media/libstagefright/include/TimedEventQueue.h
index 38a08b1..3e84256 100644
--- a/media/libstagefright/include/TimedEventQueue.h
+++ b/media/libstagefright/include/TimedEventQueue.h
@@ -145,7 +145,7 @@ private:
static void *ThreadWrapper(void *me);
void threadEntry();
- sp<Event> removeEventFromQueue_l(event_id id);
+ sp<Event> removeEventFromQueue_l(event_id id, bool *wakeLocked);
void acquireWakeLock_l();
void releaseWakeLock_l(bool force = false);