diff --git a/tools/benchmark/rs-benchmark.cpp b/tools/benchmark/rs-benchmark.cpp index 80c0f945eb..b8bf43548b 100644 --- a/tools/benchmark/rs-benchmark.cpp +++ b/tools/benchmark/rs-benchmark.cpp @@ -208,18 +208,14 @@ class gl_blocks : public suite int main(int argc, char** argv) try { std::string serial; - enum second_stream { - rgb_stream, - ir_stream - }; - second_stream second_stream; + rs2_stream second_stream; if (!device_with_streams({ RS2_STREAM_DEPTH }, serial)) return EXIT_SUCCESS; if (device_with_streams({ RS2_STREAM_COLOR }, serial)) - second_stream = rgb_stream; + second_stream = RS2_STREAM_COLOR; else if (device_with_streams({ RS2_STREAM_INFRARED }, serial)) - second_stream = ir_stream; + second_stream = RS2_STREAM_INFRARED; else { std::cout<< " Connect a Depth Camera that supports either RGB or Infrared streams." <