-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video profile eq #8473
Video profile eq #8473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put DSO reference in description
if (devices.size() == 0) return; | ||
auto dev = devices[0]; | ||
|
||
auto depth_sens = dev.first< rs2::depth_sensor >(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add check for cast and exist gracefully if casting fails, i.e. with T265.
Alternatively, modify the flow to handle T265 as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
video_stream_profile class is missing operator==
This cause 2 video_stream_profile objects to use the stream_profile::operator== instead which gives false results.
PR includes a test to demonstrate the issue and the fix.
Relates to DSO-16565