Fix corruption of an existing DCP when a new one is made with the same video
[dcpomatic.git] / src / lib / dcp_content.h
index 21b654c96040d756ad37888f427ca49ccc1f91bd..434b6104668a70ddb52905bb9a257563efbe62a6 100644 (file)
@@ -37,6 +37,8 @@ public:
        static int const REFERENCE_VIDEO;
        static int const REFERENCE_AUDIO;
        static int const REFERENCE_SUBTITLE;
+       static int const NAME;
+       static int const HAS_SUBTITLES;
 };
 
 class ContentPart;
@@ -122,6 +124,11 @@ public:
                return _cpl;
        }
 
+       std::string name () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _name;
+       }
+
 private:
        friend class reels_test5;
 
@@ -162,6 +169,8 @@ private:
         *  just use the only CPL.
         */
        boost::optional<std::string> _cpl;
+       /** List of the lengths of the reels in this DCP */
+       std::list<int64_t> _reel_lengths;
 };
 
 #endif