summaryrefslogtreecommitdiff
path: root/src/cam/camera_session.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-12 04:23:47 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-15 05:05:29 +0300
commit45662c4dd757cff33ebbf296c8f656c17c9022b5 (patch)
tree43814cfeacc211452ce15e58f593b13d5cf67d36 /src/cam/camera_session.cpp
parent90a17209266597eaf16162d4ff13d72007a25e67 (diff)
cam: Rename CameraSession::streamName_ to streamNames_
The streamName_ map contains names for all streams, rename it to streamNames_ to make this more explicit. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/cam/camera_session.cpp')
-rw-r--r--src/cam/camera_session.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cam/camera_session.cpp b/src/cam/camera_session.cpp
index 32a373a9..5a25baab 100644
--- a/src/cam/camera_session.cpp
+++ b/src/cam/camera_session.cpp
@@ -177,11 +177,11 @@ int CameraSession::start()
return ret;
}
- streamName_.clear();
+ streamNames_.clear();
for (unsigned int index = 0; index < config_->size(); ++index) {
StreamConfiguration &cfg = config_->at(index);
- streamName_[cfg.stream()] = "cam" + std::to_string(cameraIndex_)
- + "-stream" + std::to_string(index);
+ streamNames_[cfg.stream()] = "cam" + std::to_string(cameraIndex_)
+ + "-stream" + std::to_string(index);
}
camera_->requestCompleted.connect(this, &CameraSession::requestComplete);
@@ -369,7 +369,7 @@ void CameraSession::processRequest(Request *request)
const FrameMetadata &metadata = buffer->metadata();
- info << " " << streamName_[stream]
+ info << " " << streamNames_[stream]
<< " seq: " << std::setw(6) << std::setfill('0') << metadata.sequence
<< " bytesused: ";