Visualizer: fix native crash when visualizer release
Visualizer should not be destroyed before mCaptureThread exit. Bug: 124833084 Test: CTS VisualizerTest Change-Id: I0cda2ff2be8ce487e10b5311fbdc043fa57d91d4 Merged-In: I0cda2ff2be8ce487e10b5311fbdc043fa57d91d4 Signed-off-by: zengjing <zengjing@xiaomi.com>
This commit is contained in:
committed by
Mikhail Naganov
parent
c45da18fbb
commit
52f7adec6c
@@ -440,6 +440,7 @@ static void android_media_visualizer_native_release(JNIEnv *env, jobject thiz)
|
||||
if (lpVisualizer == 0) {
|
||||
return;
|
||||
}
|
||||
lpVisualizer->release();
|
||||
}
|
||||
// delete the JNI data
|
||||
VisualizerJniStorage* lpJniStorage =
|
||||
|
||||
Reference in New Issue
Block a user