From 634410817e48a80437861780d37435c7fcdc3fed Mon Sep 17 00:00:00 2001 From: ohadmeir Date: Sun, 3 Nov 2024 12:19:31 +0200 Subject: [PATCH] Fix DDS stream tagging --- src/dds/rs-dds-device-proxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dds/rs-dds-device-proxy.cpp b/src/dds/rs-dds-device-proxy.cpp index 10503106f5..94bd86e0ae 100644 --- a/src/dds/rs-dds-device-proxy.cpp +++ b/src/dds/rs-dds-device-proxy.cpp @@ -556,9 +556,9 @@ void dds_device_proxy::tag_default_profile_of_stream( // Superset = picked up in pipeline with enable_all_stream() config // We want color and depth to be default, and add infrared as superset int tag = PROFILE_TAG_SUPERSET; - if( stream->type_string() == "color" || stream->type_string() == "depth" ) + if( strcmp( stream->type_string(), "color" ) == 0 || strcmp( stream->type_string(), "depth" ) == 0 ) tag |= PROFILE_TAG_DEFAULT; - else if( stream->type_string() != "infrared" || profile->get_stream_index() >= 2 ) + else if( strcmp( stream->type_string(), "ir" ) != 0 || profile->get_stream_index() >= 2 ) return; // leave untagged profile->tag_profile( tag ); }