From f2c65be1036bb5d7310c4a8714e14bb4496efebb Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Fri, 16 Feb 2018 13:48:42 +0100 Subject: SLS: add support to request slides dir re-read A re-read of the slides dir can now be requested by storing a file named `REQUEST_SLIDES_DIR_REREAD` into the slides dir. When the next slide is going to be encoded and this file is present, the slides dir is re-read and this file is deleted. --- src/sls.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sls.h') diff --git a/src/sls.h b/src/sls.h index 9695544..3d6a407 100644 --- a/src/sls.h +++ b/src/sls.h @@ -3,7 +3,7 @@ Copyright (C) 2014, 2015 Matthias P. Braendli (http://opendigitalradio.org) - Copyright (C) 2015, 2016, 2017 Stefan Pöschel (http://opendigitalradio.org) + Copyright (C) 2015, 2016, 2017, 2018 Stefan Pöschel (http://opendigitalradio.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -196,6 +196,7 @@ public: bool InitFromDir(const std::string& dir); bool Empty() {return slides.empty();} + void Clear() {slides.clear();} slide_metadata_t GetSlide(); }; @@ -247,6 +248,7 @@ private: public: static const int APPTYPE_MOT_START; static const int APPTYPE_MOT_CONT; + static const std::string REQUEST_REREAD_FILENAME; SLSEncoder(PADPacketizer* pad_packetizer) : pad_packetizer(pad_packetizer), cindex_header(0), cindex_body(0) {} -- cgit v1.2.3