summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-24 11:55:21 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-25 01:59:29 +0200
commit4d84fa4fee4c138cc672715309de00dfbe4fc711 (patch)
tree483ba9be0a77ff6407215e6ca9c34290e2f05584
parent607a9d7f5698fa514b66b0f0a53393fb8435ed12 (diff)
libcamera: pipeline: uvc: Mark the media device as hotpluggable
UVC devices can be hot-unplugged. Mark the corresponding media device as hotpluggable to ensure proper disconnection support. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
-rw-r--r--src/libcamera/pipeline/uvcvideo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp
index c8f1bf55..f84fa415 100644
--- a/src/libcamera/pipeline/uvcvideo.cpp
+++ b/src/libcamera/pipeline/uvcvideo.cpp
@@ -49,6 +49,7 @@ bool PipelineHandlerUVC::match(DeviceEnumerator *enumerator)
std::shared_ptr<Camera> camera = Camera::create(this, dev_->model());
registerCamera(std::move(camera));
+ hotplugMediaDevice(dev_.get());
return true;
}