From ed227b4fdba9b4fc7f06f6db4830219f14bad358 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 14 Dec 2018 00:58:48 +0000 Subject: swaroop: fix up restart-after-crash. --- src/lib/spl.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib/spl.h') diff --git a/src/lib/spl.h b/src/lib/spl.h index b94c08571..b19ef7e7a 100644 --- a/src/lib/spl.h +++ b/src/lib/spl.h @@ -22,6 +22,7 @@ #define DCPOMATIC_SPL_H #include "spl_entry.h" +#include class ContentStore; @@ -29,7 +30,8 @@ class SPL { public: SPL () - : _missing (false) + : _id (dcp::make_uuid()) + , _missing (false) {} void add (SPLEntry e) { @@ -55,6 +57,10 @@ public: void read (boost::filesystem::path path, ContentStore* store); void write (boost::filesystem::path path) const; + std::string id () const { + return _id; + } + std::string name () const { return _name; } @@ -64,6 +70,7 @@ public: } private: + std::string _id; std::string _name; std::vector _spl; /** true if any content was missing when read() was last called on this SPL */ -- cgit v1.2.3