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:
Laurent Pinchart 2019-01-24 11:55:21 +02:00
parent 607a9d7f56
commit 4d84fa4fee

View file

@ -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;
}