@@ -19,13 +19,13 @@  BufferWriter::BufferWriter(const std::string &pattern)
 {
 }
 
-int BufferWriter::write(libcamera::Buffer *buffer)
+int BufferWriter::write(libcamera::Buffer *buffer, const std::string &name)
 {
 	std::string filename;
 	size_t pos;
 	int fd, ret = 0;
 
-	filename = pattern_;
+	filename = pattern_ + "-" + name;
 	pos = filename.find_first_of('#');
 	if (pos != std::string::npos) {
 		std::stringstream ss;
@@ -16,7 +16,7 @@  class BufferWriter
 public:
 	BufferWriter(const std::string &pattern = "frame-#.bin");
 
-	int write(libcamera::Buffer *buffer);
+	int write(libcamera::Buffer *buffer, const std::string &name);
 
 private:
 	std::string pattern_;
 
  
Add a parameter to the frame writer 'write()' method to allow specify which output the frame has been produced from. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> --- src/cam/buffer_writer.cpp | 4 ++-- src/cam/buffer_writer.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)