Skip to content

Commit

Permalink
PR #13489 from OhadMeir: Fix DDS stream tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Nov 3, 2024
2 parents 6cd93e8 + 6344108 commit bca6605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dds/rs-dds-device-proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit bca6605

Please sign in to comment.