summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-23 10:41:01 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-08 21:56:47 +0100
commitac69a0eb81e23a341545e05fa12a0e26070cb222 (patch)
treea7040b9fa1468c8f4835ec06eb44965498a1e716
parent98b1d9ae3188a7419182b747caa16739bf649039 (diff)
Set up things correctly on initialisation.
-rw-r--r--src/wx/film_viewer.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 17573b438..704088645 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -182,6 +182,10 @@ FilmViewer::set_film (shared_ptr<Film> film)
_film->LengthChange.connect (boost::bind(&FilmViewer::film_length_change, this));
_player->Change.connect (boost::bind (&FilmViewer::player_change, this, _1, _2, _3));
+ film_change (CHANGE_TYPE_DONE, Film::VIDEO_FRAME_RATE);
+ film_change (CHANGE_TYPE_DONE, Film::THREE_D);
+ film_length_change ();
+
/* Keep about 1 second's worth of history samples */
_latency_history_count = _film->audio_frame_rate() / _audio_block_size;