diff options
Diffstat (limited to 'src/android/camera_device.cpp')
-rw-r--r-- | src/android/camera_device.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index 3419236a..de6f86f7 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -233,6 +233,13 @@ CameraDevice::~CameraDevice() delete it.second; } +std::shared_ptr<CameraDevice> CameraDevice::create(unsigned int id, + const std::shared_ptr<Camera> &cam) +{ + CameraDevice *camera = new CameraDevice(id, cam); + return std::shared_ptr<CameraDevice>(camera); +} + /* * Initialize the camera static information. * This method is called before the camera device is opened. |