diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-19 03:21:30 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-08-05 16:23:11 +0300 |
commit | ab623b4738130048ff12d632cec6778e1187d9dd (patch) | |
tree | c2e97b1885e395202c90dde1311e58bffbb3a2b2 /src/cam/camera_session.cpp | |
parent | 02001fecb0f578438bcfb27cc7496d721c6a18d1 (diff) |
cam: Rename BufferWriter to FileSink
Rename the BufferWriter class to FileSink to establish a common naming
scheme for all sinks.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'src/cam/camera_session.cpp')
-rw-r--r-- | src/cam/camera_session.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cam/camera_session.cpp b/src/cam/camera_session.cpp index f91b5234..f34a6ed5 100644 --- a/src/cam/camera_session.cpp +++ b/src/cam/camera_session.cpp @@ -13,9 +13,9 @@ #include <libcamera/control_ids.h> #include <libcamera/property_ids.h> -#include "buffer_writer.h" #include "camera_session.h" #include "event_loop.h" +#include "file_sink.h" #include "main.h" #include "stream_options.h" @@ -163,9 +163,9 @@ int CameraSession::start() if (options_.isSet(OptFile)) { if (!options_[OptFile].toString().empty()) - sink_ = std::make_unique<BufferWriter>(options_[OptFile]); + sink_ = std::make_unique<FileSink>(options_[OptFile]); else - sink_ = std::make_unique<BufferWriter>(); + sink_ = std::make_unique<FileSink>(); } if (sink_) { |