Bugfix: The first image passed to Stream::SetAcquiredImage is ignored and leaked

This commit is contained in:
chubei-oppen
2022-02-18 16:16:57 +08:00
committed by Mathias Agopian
parent 23b578ef89
commit 4ac3454dc6

View File

@@ -201,8 +201,8 @@ Java_com_google_android_filament_Stream_nSetAcquiredImage(JNIEnv* env, jclass, j
if (!AHardwareBuffer_fromHardwareBuffer_fn) {
__android_log_print(ANDROID_LOG_WARN, "Filament", "AHardwareBuffer_fromHardwareBuffer is not available.");
sHardwareBufferSupported = false;
return;
}
return;
}
AHardwareBuffer* nativeBuffer = AHardwareBuffer_fromHardwareBuffer_fn(env, hwbuffer);