commit | 4da63b534eecadab856bf4e39d74aa208798dca1 | [log] [tgz] |
---|---|---|
author | Keith Mok <kmok@cyngn.com> | Thu Jun 16 12:10:46 2016 -0700 |
committer | Keith Mok <kmok@cyngn.com> | Thu Jun 16 16:21:28 2016 -0700 |
tree | 573b1551212c4990e952803605fa4c2bca834504 | |
parent | 3f0054bd04310d8dbaf5f1d03ff7b14c481c912d [diff] |
FmService: Fix crash when plug-in/out headset There is race condition between the RenderThread and main thread using the object mAudioTrack and mAudioRecord. Stop and re-create the RenderThread when we need to create new instance of mAudioTrack and mAudioRecord to avoid the race condition. CYNGNOS-2775 FEIJ-1227 Change-Id: I919010fdcc8aad76f1fc5debe6729b4d2a6954dc