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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user