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>
This commit is contained in:
parent
02001fecb0
commit
ab623b4738
4 changed files with 19 additions and 19 deletions
|
@ -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_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue