diff --git a/include/lsl_cpp.h b/include/lsl_cpp.h index 02997044..d2f5d6bc 100644 --- a/include/lsl_cpp.h +++ b/include/lsl_cpp.h @@ -324,7 +324,8 @@ class stream_info { /// lsl_stream_info_matches_query bool matches_query(const char *query) const { - return lsl_stream_info_matches_query(obj.get(), query); + int result = lsl_stream_info_matches_query(obj.get(), query); + return result != 0; }