diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-15 02:47:35 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-15 18:03:57 +0200 |
| commit | 0cfe03ee13d7659901211345e30ed78fe55e21ea (patch) | |
| tree | 213890d76954c3a51fecb731d35eccbf8906ba07 /src/wx | |
| parent | de77e42f106342e1668e8948e28d6974ef44b61c (diff) | |
Change Film::add_content to take a vector of content.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/playlist_controls.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/playlist_controls.cc b/src/wx/playlist_controls.cc index bde065659..ef9dd2213 100644 --- a/src/wx/playlist_controls.cc +++ b/src/wx/playlist_controls.cc @@ -48,6 +48,7 @@ using std::exception; using std::shared_ptr; using std::sort; using std::string; +using std::vector; using boost::optional; using namespace dcpomatic; @@ -381,7 +382,7 @@ PlaylistControls::reset_film () DCPOMATIC_ASSERT (_selected_playlist); auto film = std::make_shared<Film>(optional<boost::filesystem::path>()); auto entry = _playlists[*_selected_playlist].get(_selected_playlist_position); - film->add_content(entry.content); + film->add_content(vector<shared_ptr<Content>>{entry.content}); ResetFilm(film, entry.crop_to_ratio); } |
