diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-22 00:10:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 21:56:47 +0100 |
| commit | 166f44ff1b500f684417d660bb349d35383996ee (patch) | |
| tree | 230b6aa0f1be00f2f1570a96721e4b97262c3c69 /src/wx/video_view.cc | |
| parent | f77529bdfa01ae13f889442900988fc401b63c62 (diff) | |
More tidying up.
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 ee14f4a33..7e9e1a947 100644 --- a/src/wx/video_view.cc +++ b/src/wx/video_view.cc @@ -110,3 +110,20 @@ VideoView::start () boost::mutex::scoped_lock lm (_mutex); _dropped = 0; } + +bool +VideoView::refresh_metadata (shared_ptr<const Film> film, dcp::Size video_container_size, dcp::Size film_frame_size) +{ + boost::mutex::scoped_lock lm (_mutex); + if (!_player_video.first) { + return false; + } + + if (!_player_video.first->reset_metadata (film, video_container_size, film_frame_size)) { + return false; + } + + update (); + return true; +} + |
