libcamera: v4l2_device: Construct from MediaEntity*

The V4L2Device constructor wants a "const MediaEntity &", while
entities are usually retrieved by pointer before being used to construct
a V4L2Device. Change the constructor argument to "const MediaEntity *".

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi 2019-01-29 15:18:42 +01:00
parent dd45866ea4
commit f7e75d9e70
5 changed files with 6 additions and 6 deletions

View file

@ -97,7 +97,7 @@ bool PipeHandlerVimc::match(DeviceEnumerator *enumerator)
media_->acquire();
video_ = new V4L2Device(*media_->getEntityByName("Raw Capture 1"));
video_ = new V4L2Device(media_->getEntityByName("Raw Capture 1"));
if (video_->open()) {
media_->release();