diff --git a/examples/multicam/rs-multicam.cpp b/examples/multicam/rs-multicam.cpp index 30da796fea..3c59bd91bb 100644 --- a/examples/multicam/rs-multicam.cpp +++ b/examples/multicam/rs-multicam.cpp @@ -30,6 +30,9 @@ int main(int argc, char * argv[]) try colorizers[dev.get_info(RS2_CAMERA_INFO_SERIAL_NUMBER)] = rs2::colorizer(); } + // We'll keep track of the last frame of each stream available to make the presentation persistent + std::map render_frames; + // Main app loop while (app) { @@ -45,9 +48,6 @@ int main(int argc, char * argv[]) try } } - // We'll keep track for the last frame of each stream available to make the presentation persistent - std::map render_frames; - // Convert the newly-arrived frames to render-friendly format for (const auto& frame : new_frames) {