diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-08-30 02:21:30 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-11-19 22:38:44 +0200 |
commit | 5bd07feab4311d47e4f0ef1d7dba07ec2380d2cb (patch) | |
tree | 74dfbdf101a8405c96e107ba7c0317b79b1ba995 /src | |
parent | a01007b102749caa08c1197f8ee3e1c4ed1cc530 (diff) |
libcamera: pipeline: simple: Rename Entity::link to sourceLink
The Entity::link member has an ambiguous name. Rename it to sourceLink
to clarify that it stores the link on the source pad.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/simple/simple.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index e8957b77..41b52699 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -203,10 +203,10 @@ public: */ const MediaPad *source; /* - * The link to the downstream entity, null for the video node at - * the end of the pipeline. + * The link on the source pad, to the downstream entity, null + * for the video node at the end of the pipeline. */ - MediaLink *link; + MediaLink *sourceLink; }; struct Configuration { @@ -555,13 +555,13 @@ int SimpleCameraData::setupLinks() * want to enable) before enabling the pipeline link. */ for (SimpleCameraData::Entity &e : entities_) { - if (!e.link) + if (!e.sourceLink) break; - MediaEntity *remote = e.link->sink()->entity(); + MediaEntity *remote = e.sourceLink->sink()->entity(); for (MediaPad *pad : remote->pads()) { for (MediaLink *link : pad->links()) { - if (link == e.link) + if (link == e.sourceLink) continue; if ((link->flags() & MEDIA_LNK_FL_ENABLED) && @@ -573,8 +573,8 @@ int SimpleCameraData::setupLinks() } } - if (!(e.link->flags() & MEDIA_LNK_FL_ENABLED)) { - ret = e.link->setEnabled(true); + if (!(e.sourceLink->flags() & MEDIA_LNK_FL_ENABLED)) { + ret = e.sourceLink->setEnabled(true); if (ret < 0) return ret; } @@ -598,10 +598,10 @@ int SimpleCameraData::setupFormats(V4L2SubdeviceFormat *format, return ret; for (const Entity &e : entities_) { - if (!e.link) + if (!e.sourceLink) break; - MediaLink *link = e.link; + MediaLink *link = e.sourceLink; MediaPad *source = link->source(); MediaPad *sink = link->sink(); |