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
1 file changed
tree: 573b1551212c4990e952803605fa4c2bca834504
  1. jni/
  2. res/
  3. src/
  4. Android.mk
  5. AndroidManifest.xml