Skip to content

Commit 634e79f

Browse files
authored
Fix lut calibration for grabberless builds (#840)
* Fix nullptr grabber instance check
1 parent 154d40a commit 634e79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sources/api/HyperAPI.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ void HyperAPI::handleLutCalibrationCommand(const QJsonObject& message, const QSt
10281028
sendSuccessReply(command, tan);
10291029

10301030
if (subcommand == "capture")
1031-
_lutCalibrator->incomingCommand(_instanceManager->getRootPath(), _videoGrabber->grabberWrapper(), getActiveComponent(), checksum, _startColor, _endColor, limitedRange, saturation, luminance, gammaR, gammaG, gammaB, coef);
1031+
_lutCalibrator->incomingCommand(_instanceManager->getRootPath(), (_videoGrabber != nullptr) ? _videoGrabber->grabberWrapper() : nullptr, getActiveComponent(), checksum, _startColor, _endColor, limitedRange, saturation, luminance, gammaR, gammaG, gammaB, coef);
10321032
else
10331033
_lutCalibrator->stopHandler();
10341034
}

0 commit comments

Comments
 (0)