#ifdef DCPOMATIC_VARIANT_SWAROOP
, _in_watermark (false)
#endif
+ , _video_frame_rate (0)
{}
virtual ~VideoView () {}
return _player_video.second;
}
- void set_film (boost::shared_ptr<const Film> film) {
+ void set_video_frame_rate (int r) {
boost::mutex::scoped_lock lm (_mutex);
- _film = film;
+ _video_frame_rate = r;
+ }
+
+ void set_length (dcpomatic::DCPTime len) {
+ boost::mutex::scoped_lock lm (_mutex);
+ _length = len;
}
protected:
bool get_next_frame (bool non_blocking);
int time_until_next_frame () const;
dcpomatic::DCPTime one_video_frame () const;
-
- boost::shared_ptr<const Film> film () const {
+ int video_frame_rate () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _video_frame_rate;
+ }
+ dcpomatic::DCPTime length () const {
boost::mutex::scoped_lock lm (_mutex);
- return _film;
+ return _length;
}
FilmViewer* _viewer;
#endif
private:
- boost::shared_ptr<const Film> _film;
+ int _video_frame_rate;
+ dcpomatic::DCPTime _length;
};
#endif