зеркало из https://github.com/mozilla/gecko-dev.git
Bug 863490 - Part 1: Get the correct JNIEnv for the worker thread that is destroying the Flash plugin. r=blassey
This commit is contained in:
Родитель
de25c50f93
Коммит
adb2bf751a
|
@ -2311,7 +2311,8 @@ AndroidBridge::RegisterSurfaceTextureFrameListener(jobject surfaceTexture, int i
|
|||
void
|
||||
AndroidBridge::UnregisterSurfaceTextureFrameListener(jobject surfaceTexture)
|
||||
{
|
||||
JNIEnv* env = GetJNIEnv();
|
||||
// This function is called on a worker thread when the Flash plugin is unloaded.
|
||||
JNIEnv* env = GetJNIForThread();
|
||||
if (!env)
|
||||
return;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче