diff --git a/spa/plugins/libcamera/libcamera-source.cpp b/spa/plugins/libcamera/libcamera-source.cpp index fba3d8b0b..3d65270ae 100644 --- a/spa/plugins/libcamera/libcamera-source.cpp +++ b/spa/plugins/libcamera/libcamera-source.cpp @@ -1592,8 +1592,7 @@ int impl_node_send_command(void *object, const struct spa_command *command) } case SPA_NODE_COMMAND_Pause: case SPA_NODE_COMMAND_Suspend: - if ((res = spa_libcamera_stream_off(impl)) < 0) - return res; + spa_libcamera_stream_off(impl); break; default: return -ENOTSUP;