Skip to content

Commit

Permalink
remove get_c_wrapper() from synthetic-source-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Dec 5, 2023
1 parent 99d2895 commit e5f52c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/core/synthetic-source-interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace librealsense
{
class stream_profile_interface;

// A synthetic source is simply a wrapper around a frame_source and its exposure thru the rs2_source APIs
// A synthetic source is simply the interface for exposing frame_source APIs
//
class synthetic_source_interface
{
Expand All @@ -50,6 +50,5 @@ namespace librealsense
rs2_extension frame_type = RS2_EXTENSION_POINTS) = 0;

virtual void frame_ready(frame_holder result) = 0;
virtual rs2_source* get_c_wrapper() = 0;
};
}
2 changes: 1 addition & 1 deletion src/proc/synthetic-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace librealsense
frame_interface* ptr = nullptr;
std::swap(f.frame, ptr);

_callback->on_frame((rs2_frame*)ptr, _source_wrapper.get_c_wrapper());
_callback->on_frame( (rs2_frame *)ptr, _source_wrapper.get_rs2_source() );
}
}
catch (std::exception const & e)
Expand Down
2 changes: 1 addition & 1 deletion src/proc/synthetic-stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace librealsense

void frame_ready(frame_holder result) override;

rs2_source* get_c_wrapper() override { return _c_wrapper.get(); }
rs2_source* get_rs2_source() const { return _c_wrapper.get(); }

private:
frame_source & _actual_source;
Expand Down

0 comments on commit e5f52c9

Please sign in to comment.