summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp
index 9fe29ca9..f0575c13 100644
--- a/src/libcamera/camera.cpp
+++ b/src/libcamera/camera.cpp
@@ -501,7 +501,7 @@ static const char *const camera_state_names[] = {
bool Camera::Private::isAcquired() const
{
- return state_.load(std::memory_order_acquire) == CameraRunning;
+ return state_.load(std::memory_order_acquire) != CameraAvailable;
}
bool Camera::Private::isRunning() const