diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-20 23:07:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 21:56:47 +0100 |
| commit | 5aff601c454fa756c0ab71ae4bcf8f7f4ce28737 (patch) | |
| tree | d453bc6c8e37ba2c2601a477c3d314a86721d62c /src/wx/video_view.cc | |
| parent | 7da4fe1c2de3c184a22dbcd1195fc6cffb83ac51 (diff) | |
Move _dropped into VideoView.
Diffstat (limited to 'src/wx/video_view.cc')
| -rw-r--r-- | src/wx/video_view.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wx/video_view.cc b/src/wx/video_view.cc index ede0708c2..d54487a93 100644 --- a/src/wx/video_view.cc +++ b/src/wx/video_view.cc @@ -23,6 +23,17 @@ #include "film_viewer.h" #include "lib/butler.h" +VideoView::VideoView (FilmViewer* viewer) + : _viewer (viewer) +#ifdef DCPOMATIC_VARIANT_SWAROOP + , _in_watermark (false) +#endif + , _video_frame_rate (0) + , _dropped (0) +{ + +} + void VideoView::clear () { @@ -85,3 +96,9 @@ VideoView::time_until_next_frame () const return (next.seconds() - time.seconds()) * 1000; } +void +VideoView::start () +{ + boost::mutex::scoped_lock lm (_mutex); + _dropped = 0; +} |
