File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -208,18 +208,14 @@ class gl_blocks : public suite
208
208
int main (int argc, char ** argv) try
209
209
{
210
210
std::string serial;
211
- enum second_stream {
212
- rgb_stream,
213
- ir_stream
214
- };
215
- second_stream second_stream;
211
+ rs2_stream second_stream;
216
212
if (!device_with_streams ({ RS2_STREAM_DEPTH }, serial))
217
213
return EXIT_SUCCESS;
218
214
219
215
if (device_with_streams ({ RS2_STREAM_COLOR }, serial))
220
- second_stream = rgb_stream ;
216
+ second_stream = RS2_STREAM_COLOR ;
221
217
else if (device_with_streams ({ RS2_STREAM_INFRARED }, serial))
222
- second_stream = ir_stream ;
218
+ second_stream = RS2_STREAM_INFRARED ;
223
219
else
224
220
{
225
221
std::cout<< " Connect a Depth Camera that supports either RGB or Infrared streams." <<std::endl;
@@ -259,7 +255,7 @@ int main(int argc, char** argv) try
259
255
if (!serial.empty ())
260
256
cfg.enable_device (serial);
261
257
cfg.enable_stream (RS2_STREAM_DEPTH);
262
- if (second_stream == rgb_stream )
258
+ if (second_stream == RS2_STREAM_COLOR )
263
259
cfg.enable_stream (RS2_STREAM_COLOR, RS2_FORMAT_YUYV, 30 );
264
260
else
265
261
cfg.enable_stream (RS2_STREAM_INFRARED);
You can’t perform that action at this time.
0 commit comments