diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-08-08 18:11:11 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-08-09 10:18:46 +0200 |
| commit | a3c1ae7c2e46b65347341896b3d1a505ff92632b (patch) | |
| tree | 2b096eb0676f52c9989952e341f2bd98143ce125 /src/wx/film_viewer.cc | |
| parent | af5b9dfadf8989311cd5f78554349f0283912522 (diff) | |
Extract Film::Property to its own header to (maybe) increase compilation speed.
Diffstat (limited to 'src/wx/film_viewer.cc')
| -rw-r--r-- | src/wx/film_viewer.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index e7dcf5642..72193fbad 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -189,8 +189,8 @@ 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 (ChangeType::DONE, Film::Property::VIDEO_FRAME_RATE); - film_change (ChangeType::DONE, Film::Property::THREE_D); + film_change(ChangeType::DONE, FilmProperty::VIDEO_FRAME_RATE); + film_change(ChangeType::DONE, FilmProperty::THREE_D); film_length_change (); /* Keep about 1 second's worth of history samples */ @@ -486,19 +486,19 @@ FilmViewer::player_change (vector<int> properties) void -FilmViewer::film_change (ChangeType type, Film::Property p) +FilmViewer::film_change(ChangeType type, FilmProperty p) { if (type != ChangeType::DONE) { return; } - if (p == Film::Property::AUDIO_CHANNELS) { + if (p == FilmProperty::AUDIO_CHANNELS) { destroy_and_maybe_create_butler(); - } else if (p == Film::Property::VIDEO_FRAME_RATE) { + } else if (p == FilmProperty::VIDEO_FRAME_RATE) { _video_view->set_video_frame_rate (_film->video_frame_rate()); - } else if (p == Film::Property::THREE_D) { + } else if (p == FilmProperty::THREE_D) { _video_view->set_three_d (_film->three_d()); - } else if (p == Film::Property::CONTENT) { + } else if (p == FilmProperty::CONTENT) { _closed_captions_dialog->update_tracks (_film); } } |
