diff options
author | Shalaj Jain <shalajj@codeaurora.org> | 2015-10-16 16:12:28 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-24 00:26:06 -0700 |
commit | bbd59d7c0cf8a257867168699df50a3fcce3abbf (patch) | |
tree | b367d403faa9aac5c83a0280801a023e4716198f /media/libstagefright/ACodec.cpp | |
parent | 27194a9abb4fbeeac4efc8c14aab127f8550742e (diff) | |
download | frameworks_av-bbd59d7c0cf8a257867168699df50a3fcce3abbf.zip frameworks_av-bbd59d7c0cf8a257867168699df50a3fcce3abbf.tar.gz frameworks_av-bbd59d7c0cf8a257867168699df50a3fcce3abbf.tar.bz2 |
stagefright: Wait longer before force releasing codec
Increase the timeout to 30 secs from 10 in order to give the
components more time to move to idle state, otherwise freeNode
during codec release will also try to move it to idle and bad
things will happen. This is a temporary fix until software
codecs error handling is improved.
Change-Id: I89203bfbce1b81f53ed6e2a33747ec40a786507d
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-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 a132637..3c80d03 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -619,8 +619,8 @@ void ACodec::initiateShutdown(bool keepComponentAllocated) { msg->setInt32("keepComponentAllocated", keepComponentAllocated); msg->post(); if (!keepComponentAllocated) { - // ensure shutdown completes in 10 seconds - (new AMessage(kWhatReleaseCodecInstance, this))->post(10000000); + // ensure shutdown completes in 30 seconds + (new AMessage(kWhatReleaseCodecInstance, this))->post(30000000); } } |