From 0ff7478968e33e6398c14a72e6fcaf4abd0caae2 Mon Sep 17 00:00:00 2001 From: Thad House Date: Thu, 21 Dec 2023 17:58:12 -0800 Subject: [PATCH] [cscore] Fix RawFrame class not being loaded in JNI (#6077) --- cscore/src/main/native/cpp/jni/CameraServerJNI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cscore/src/main/native/cpp/jni/CameraServerJNI.cpp b/cscore/src/main/native/cpp/jni/CameraServerJNI.cpp index 0bde2e4b8fe..95b6922fa81 100644 --- a/cscore/src/main/native/cpp/jni/CameraServerJNI.cpp +++ b/cscore/src/main/native/cpp/jni/CameraServerJNI.cpp @@ -42,7 +42,8 @@ static JNIEnv* listenerEnv = nullptr; static const JClassInit classes[] = { {"edu/wpi/first/cscore/UsbCameraInfo", &usbCameraInfoCls}, {"edu/wpi/first/cscore/VideoMode", &videoModeCls}, - {"edu/wpi/first/cscore/VideoEvent", &videoEventCls}}; + {"edu/wpi/first/cscore/VideoEvent", &videoEventCls}, + {"edu/wpi/first/util/RawFrame", &rawFrameCls}}; static const JExceptionInit exceptions[] = { {"edu/wpi/first/cscore/VideoException", &videoEx},