diff --git a/modules/highgui/src/cap_openni.cpp b/modules/highgui/src/cap_openni.cpp index 016cba68e6..25c0085bd6 100644 --- a/modules/highgui/src/cap_openni.cpp +++ b/modules/highgui/src/cap_openni.cpp @@ -306,7 +306,7 @@ bool CvCapture_OpenNI::setProperty( int propIdx, double propValue ) } } - return false; + return res; } double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx )