mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 873812 - Don't attempt to open camera objects/probe capabilities more than once. r=jesup
This commit is contained in:
parent
83235b061d
commit
00901a6a48
@ -71,6 +71,13 @@ WebRtc_Word32 VideoCaptureAndroid::SetAndroidObjects(void* javaVM,
|
||||
g_jvm = static_cast<JavaVM*> (javaVM);
|
||||
|
||||
if (javaVM) {
|
||||
// Already done? Exit early.
|
||||
if (g_javaCmClass != NULL
|
||||
&& g_javaCmDevInfoClass != NULL
|
||||
&& g_javaCmDevInfoObject != NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
JNIEnv* env = NULL;
|
||||
if (g_jvm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
|
||||
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, -1,
|
||||
|
Loading…
Reference in New Issue
Block a user