Add appearance dialog for SubRip subtitles.
[dcpomatic.git] / src / lib / video_content.h
index c0a609a6ac90ae7891ca9d1cea1d421fb7b30401..309fa067072fcc2ed5eecee98abab55a072d0095 100644 (file)
@@ -79,9 +79,14 @@ public:
                return _video_size;
        }
 
-       double video_frame_rate () const {
+       double video_frame_rate () const;
+
+       /** @return true if this content has a specific video frame rate, false
+        *  if it should use the DCP's rate.
+        */
+       bool has_own_video_frame_rate () const {
                boost::mutex::scoped_lock lm (_mutex);
-               return _video_frame_rate;
+               return static_cast<bool>(_video_frame_rate);
        }
 
        void set_video_frame_type (VideoFrameType);
@@ -172,7 +177,8 @@ protected:
        void add_properties (std::list<std::pair<std::string, std::string> > &) const;
 
        Frame _video_length;
-       double _video_frame_rate;
+       /** Video frame rate, or not set if this content should use the DCP's frame rate */
+       boost::optional<double> _video_frame_rate;
        boost::optional<ColourConversion> _colour_conversion;
 
 private: