summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorDhananjay Kumar <dhakumar@codeaurora.org>2016-02-25 13:48:33 +0530
committerSteve Kondik <steve@cyngn.com>2016-04-13 13:54:55 -0700
commit7262eae1402f3256606ad1776e35c4a08ed267c3 (patch)
tree4af7bf3d022ccdd286c638348f188081b7846f08 /media/libstagefright
parent3fe0fe6a389cfd63fac0c8e32f31001d3d95bd83 (diff)
downloadframeworks_av-7262eae1402f3256606ad1776e35c4a08ed267c3.zip
frameworks_av-7262eae1402f3256606ad1776e35c4a08ed267c3.tar.gz
frameworks_av-7262eae1402f3256606ad1776e35c4a08ed267c3.tar.bz2
nuplayer: ignore openAudioSink while waiting for teardown completion
- AudioSink is reopened on AudioTearDown event as well as on decoder output format change. These events are from different contexts, independent of each other and can occur concurrently, doing set of thread-unsafe operations on audioSink, which sometimes may result in fatal error. - Any request to openSink, after teardown event is received but before its completed, is redundant since once teardown is completed sink is anyway going to be opened again. Also ignoring sink reopen while in teardown would avoid concurrent processing of thread-unsafe operations on audioSink. - Update nuplayer to prevent reopening of sink while teardown is still going on. CRs-Fixed: 978013 Change-Id: Ieb3825f133c2099e07d6e92ef101dd5156af8a20
Diffstat (limited to 'media/libstagefright')
0 files changed, 0 insertions, 0 deletions