mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 08:35:07 +03:00
libcamera: v4l2_subdevice: Add method to retrieve the media entity
Add a method to retrieve the media entity associated with a subdevice. The entityName() and deviceNode() methods are not needed anymore as they can be accessed through the media entity, remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
d97cafdf3c
commit
05b0e5ed53
5 changed files with 14 additions and 23 deletions
|
@ -66,7 +66,7 @@ int V4L2SubdeviceTest::init()
|
|||
ret = scaler_->open();
|
||||
if (ret) {
|
||||
cerr << "Unable to open video subdevice "
|
||||
<< scaler_->deviceNode() << endl;
|
||||
<< scaler_->entity()->deviceNode() << endl;
|
||||
media_->release();
|
||||
return TestSkip;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue