diff options
author | Praveen Chavan <pchavan@codeaurora.org> | 2015-09-09 12:08:46 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:25:00 -0600 |
commit | 2b0dafd500c5f2c69acbcda80a958e7b8e9d2f57 (patch) | |
tree | 9e7ca94a25f2cad8e157b2794aa8b5a8ccc7cee1 /media | |
parent | 831a6bb5319b51759b0b059c1f29635801102caa (diff) | |
download | frameworks_av-2b0dafd500c5f2c69acbcda80a958e7b8e9d2f57.zip frameworks_av-2b0dafd500c5f2c69acbcda80a958e7b8e9d2f57.tar.gz frameworks_av-2b0dafd500c5f2c69acbcda80a958e7b8e9d2f57.tar.bz2 |
Stagefright: Delay the force-shutdown of node after 10 seconds
since the node can take more than (default) 3 seconds to transition
to Exec --> Idle -> Loaded.
In the event of freeing node before the component has transitioned
to loaded, there may be race-conditions trying to invoke methods
on a non-existant component and bad things can happen.
Increase timeout to 10 seconds till the checks are in place.
Change-Id: I97f698422dfe99b47b3bafb605b642a247b44110
CRs-Fixed: 884165
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/ACodec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index 160c8da..bd3c17c 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -617,8 +617,8 @@ void ACodec::initiateShutdown(bool keepComponentAllocated) { msg->setInt32("keepComponentAllocated", keepComponentAllocated); msg->post(); if (!keepComponentAllocated) { - // ensure shutdown completes in 3 seconds - (new AMessage(kWhatReleaseCodecInstance, this))->post(3000000); + // ensure shutdown completes in 10 seconds + (new AMessage(kWhatReleaseCodecInstance, this))->post(10000000); } } |