diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-15 20:09:24 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-06-23 19:51:28 +0200 |
| commit | d04355507baefd5fa42629341ed422f7402772f4 (patch) | |
| tree | 078ee4094c7a8e4165329aa672279f7f6988c872 /src/wx/player_information.cc | |
| parent | 6b1ebeac38cf60142c542bbad30cea5597d7e1e7 (diff) | |
Move some stuff into FilmViewer::dcp().
Diffstat (limited to 'src/wx/player_information.cc')
| -rw-r--r-- | src/wx/player_information.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/wx/player_information.cc b/src/wx/player_information.cc index 057d26740..395dbc367 100644 --- a/src/wx/player_information.cc +++ b/src/wx/player_information.cc @@ -120,13 +120,7 @@ PlayerInformation::periodic_update () void PlayerInformation::triggered_update () { - shared_ptr<DCPContent> dcp; - if (_viewer.film()) { - auto content = _viewer.film()->content(); - if (content.size() == 1) { - dcp = dynamic_pointer_cast<DCPContent>(content.front()); - } - } + auto dcp = _viewer.dcp(); if (!dcp) { checked_set (_dcp[0], _("No DCP loaded.")); |
