diff --git a/src/core/synthetic-source-interface.h b/src/core/synthetic-source-interface.h index c7c8d237508..e4641eeefc8 100644 --- a/src/core/synthetic-source-interface.h +++ b/src/core/synthetic-source-interface.h @@ -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 { @@ -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; }; } diff --git a/src/proc/synthetic-stream.cpp b/src/proc/synthetic-stream.cpp index 5f8fbe5d1c4..1500aeed161 100644 --- a/src/proc/synthetic-stream.cpp +++ b/src/proc/synthetic-stream.cpp @@ -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) diff --git a/src/proc/synthetic-stream.h b/src/proc/synthetic-stream.h index d10f4dcab17..1a0f370efee 100644 --- a/src/proc/synthetic-stream.h +++ b/src/proc/synthetic-stream.h @@ -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;