summaryrefslogtreecommitdiff
path: root/src/wx/video_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/video_view.cc')
-rw-r--r--src/wx/video_view.cc17
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;
+}
+