diff --git a/include/mynteye/device/device.h b/include/mynteye/device/device.h index e575dda..50e1d50 100644 --- a/include/mynteye/device/device.h +++ b/include/mynteye/device/device.h @@ -265,6 +265,12 @@ class MYNTEYE_API Device { * Get the latest data of stream. */ device::StreamData GetStreamData(const Stream &stream); + + /** + * @deprecated Replaced by GetStreamData(const Stream &stream) + */ + device::StreamData GetLatestStreamData(const Stream &stream); + /** * Get the datas of stream. * @note default cache 4 datas at most. diff --git a/src/mynteye/device/device.cc b/src/mynteye/device/device.cc index 3280bf1..3f2050a 100644 --- a/src/mynteye/device/device.cc +++ b/src/mynteye/device/device.cc @@ -454,6 +454,10 @@ device::StreamData Device::GetStreamData(const Stream &stream) { return streams_->GetLatestStreamData(stream); } +device::StreamData Device::GetLatestStreamData(const Stream &stream) { + GetStreamData(stream); +} + std::vector Device::GetStreamDatas(const Stream &stream) { CHECK(video_streaming_); CHECK_NOTNULL(streams_);