Skip to content

Commit

Permalink
Android fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lior Ramati committed Dec 12, 2018
1 parent 10d0a36 commit 4ddd7ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/librealsense2/hpp/rs_export.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ namespace rs2
for (int i = 0; i < fs.size(); ++i) {
frame f = fs[i];
auto profile = f.get_profile();
auto s = dev.add_sensor(profile.stream_name() + "Sensor (" + std::to_string(uid) + ")");
std::stringstream sname;
sname << "Sensor (" << uid << ")";
auto s = dev.add_sensor(sname.str());
stream_profile software_profile;

if (auto vf = f.as<video_frame>()) {
Expand All @@ -197,7 +199,9 @@ namespace rs2
}

// Recorder needs sensors to already exist when its created
recorder rec(fname + std::to_string(data.get_frame_number()) + ".bag", dev);
std::stringstream name;
name << fname << data.get_frame_number << ".bag";
recorder rec(name.str(), dev);

for (auto group : sensors) {
auto s = std::get<software_sensor>(group);
Expand Down

0 comments on commit 4ddd7ea

Please sign in to comment.