X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fffmpeg_capture.h;fp=nageru%2Fffmpeg_capture.h;h=0823ce09bdb345d1884efc506abbd7cc9a456e35;hb=1d202a8d120f0af9940cc55a12140672804fad69;hp=2ab9481aad6d351e5597f86cc0df3315a39d6606;hpb=f1b3eaca67a78977069c37fc673360e1ae47449e;p=nageru diff --git a/nageru/ffmpeg_capture.h b/nageru/ffmpeg_capture.h index 2ab9481..0823ce0 100644 --- a/nageru/ffmpeg_capture.h +++ b/nageru/ffmpeg_capture.h @@ -57,6 +57,7 @@ class FFmpegCapture : public bmusb::CaptureInterface { public: FFmpegCapture(const std::string &filename, unsigned width, unsigned height); + FFmpegCapture(const std::vector &filenames, unsigned width, unsigned height); #ifdef HAVE_SRT // Takes ownership of the SRT client socket. FFmpegCapture(int srt_sock, const std::string &stream_id); @@ -90,13 +91,13 @@ public: std::string get_filename() const { std::lock_guard lock(filename_mu); - return filename; + return filenames[0]; } void change_filename(const std::string &new_filename) { std::lock_guard lock(filename_mu); - filename = new_filename; + //filename = new_filename; should_interrupt = true; } @@ -275,7 +276,8 @@ private: inline unsigned frame_height(const AVFrame *frame) const; mutable std::mutex filename_mu; - std::string description, filename; + std::string description; + std::vector filenames; int srt_sock = -1; uint16_t timecode = 0; unsigned width, height; // 0 means keep input size.