Update linux libs and constants

This commit is contained in:
Eduardo Ramos 2024-11-25 22:51:06 +01:00
parent a76fce0e93
commit 4bc3d1d1cd
4 changed files with 3 additions and 4 deletions

View File

@ -23,9 +23,8 @@ public interface LibNokhwa extends Library {
public static final int ERROR_READING_CAMERA_SESSION = (-7);
public static final int ERROR_READING_FRAME = (-8);
public static final int ERROR_DECODING_FRAME = (-9);
public static final int ERROR_NO_FRAME_AVAILABLE = (-10);
public static final int ERROR_BUFFER_NULL = (-11);
public static final int ERROR_BUFFER_NOT_ENOUGH_CAPACITY = (-12);
public static final int ERROR_BUFFER_NULL = (-10);
public static final int ERROR_BUFFER_NOT_ENOUGH_CAPACITY = (-11);
// Auth status:
public static final int STATUS_AUTHORIZED = (0);

View File

@ -279,7 +279,7 @@ public class NokhwaVideoDevice implements WebcamDeviceExtended {
if (grabResult == RESULT_OK) {
lastFrameTimestamp = System.currentTimeMillis();
} else if (grabResult != ERROR_NO_FRAME_AVAILABLE){
} else {
LOG.error("Error grabbing frame = {}", grabResult);
}
}