summaryrefslogtreecommitdiff
path: root/src/wx/film_viewer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/film_viewer.cc')
-rw-r--r--src/wx/film_viewer.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index a52f4286e..0c144086b 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -98,20 +98,16 @@ FilmViewer::FilmViewer(wxWindow* p)
_video_view = std::make_shared<GLVideoView>(this, p);
break;
case Config::VIDEO_VIEW_SIMPLE:
- {
- auto simple = std::make_shared<SimpleVideoView>(this, p);
- _meters_dialog->set_meters(simple->get_meters());
- _video_view = simple;
- }
+ _video_view = std::make_shared<SimpleVideoView>(this, p);
break;
}
#else
auto simple = std::make_shared<SimpleVideoView>(this, p);
- _meters_dialog->set_meters(simple->get_meters());
_video_view = simple;
#endif
_meters_dialog->Bind(wxEVT_SHOW, boost::bind(&FilmViewer::meters_shown, this, _1));
+ _meters_dialog->set_meters(_video_view->get_meters());
_video_view->Sized.connect(boost::bind(&FilmViewer::video_view_sized, this));
_video_view->TooManyDropped.connect(boost::bind(boost::ref(TooManyDropped)));