summaryrefslogtreecommitdiff
path: root/src/gstreamer
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-21 22:47:53 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-04 23:07:47 +0300
commita4df063a9465528c8948dfbc59c7be3af0ae9281 (patch)
treebb9944acbd4795e5f6496781d81515add904651f /src/gstreamer
parent4517344a554b8ece498f81c8a145e07b12664c9e (diff)
gstreamer: Rename queued requests queue to queuedRequests_
To prepare for the addition of a completed requests queue, rename the existing queued requests queue from requests_ to queuedRequests_. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'src/gstreamer')
-rw-r--r--src/gstreamer/gstlibcamerasrc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp
index 37f201e8..f2f48d53 100644
--- a/src/gstreamer/gstlibcamerasrc.cpp
+++ b/src/gstreamer/gstlibcamerasrc.cpp
@@ -108,7 +108,7 @@ struct GstLibcameraSrcState {
std::shared_ptr<Camera> cam_;
std::unique_ptr<CameraConfiguration> config_;
std::vector<GstPad *> srcpads_;
- std::queue<std::unique_ptr<RequestWrap>> requests_;
+ std::queue<std::unique_ptr<RequestWrap>> queuedRequests_;
guint group_id_;
void requestCompleted(Request *request);
@@ -155,8 +155,8 @@ GstLibcameraSrcState::requestCompleted(Request *request)
GST_DEBUG_OBJECT(src_, "buffers are ready");
- std::unique_ptr<RequestWrap> wrap = std::move(requests_.front());
- requests_.pop();
+ std::unique_ptr<RequestWrap> wrap = std::move(queuedRequests_.front());
+ queuedRequests_.pop();
g_return_if_fail(wrap->request_.get() == request);
@@ -311,7 +311,7 @@ gst_libcamera_src_task_run(gpointer user_data)
GLibLocker lock(GST_OBJECT(self));
GST_TRACE_OBJECT(self, "Requesting buffers");
state->cam_->queueRequest(wrap->request_.get());
- state->requests_.push(std::move(wrap));
+ state->queuedRequests_.push(std::move(wrap));
/* The RequestWrap will be deleted in the completion handler. */
}