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

@ -169,8 +169,8 @@ V4L2Device::V4L2Device(const std::string &deviceNode)
*
* Construct a V4L2Device from a MediaEntity's device node path.
*/
V4L2Device::V4L2Device(const MediaEntity &entity)
: V4L2Device(entity.deviceNode())
V4L2Device::V4L2Device(const MediaEntity *entity)
: V4L2Device(entity->deviceNode())
{
}