Comment.
[dcpomatic.git] / src / lib / video_content.h
index aa541fc32b85bd05f870d7a0776ee5a3427e54e5..6896551314eaaf9c2a96ae7d5b28af2e1781d044 100644 (file)
@@ -86,7 +86,7 @@ public:
         */
        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);
@@ -150,6 +150,11 @@ public:
                return _sample_aspect_ratio;
        }
 
+       bool yuv () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _yuv;
+       }
+
        Frame fade_in () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _fade_in;
@@ -197,6 +202,7 @@ private:
            if there is one.
        */
        boost::optional<double> _sample_aspect_ratio;
+       bool _yuv;
        Frame _fade_in;
        Frame _fade_out;
 };