Skip to content

Commit 5bab736

Browse files
committed
Viewer - use stream name in header
1 parent 427e562 commit 5bab736

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

common/stream-model.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -444,16 +444,9 @@ namespace rs2
444444
std::string dev_name = dev->dev.get_info(RS2_CAMERA_INFO_NAME);
445445
std::string dev_serial = dev->dev.get_info(RS2_CAMERA_INFO_SERIAL_NUMBER);
446446
std::string sensor_name = dev->s->get_info(RS2_CAMERA_INFO_NAME);
447-
std::string stream_name = rs2_stream_to_string(profile.stream_type());
447+
std::string stream_name = profile.stream_name();
448448
std::string stream_index_str;
449449

450-
// Show stream index on IR streams
451-
if (profile.stream_type() == RS2_STREAM_INFRARED)
452-
{
453-
int stream_index = profile.stream_index();
454-
stream_index_str = rsutils::string::from() << " #" << stream_index;
455-
}
456-
457450
tooltip = rsutils::string::from() << dev_name << " s.n:" << dev_serial << " | " << sensor_name << ", " << stream_name << stream_index_str << " stream";
458451
const auto approx_char_width = 12;
459452
if (stream_rect.w - 32 * num_of_buttons >= (dev_name.size() + dev_serial.size() + sensor_name.size() + stream_name.size() + stream_index_str.size()) * approx_char_width)

0 commit comments

Comments
 (0)