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:
parent
607a9d7f56
commit
4d84fa4fee
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue