Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/tm2/tm-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ namespace librealsense
{
case RS2_STREAM_FISHEYE:
{
if(stream_index != 1 && stream_index != 2) {
throw invalid_value_exception("Invalid stream index, must be 1 or 2");
}
stream_index -= 1; // for multiple streams, the index starts from 1
//TODO: check bound for _tm_supported_profiles.___[]
auto tm_profile = _tm_supported_profiles.video[stream_index];
Expand Down