diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-09 20:50:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-09 20:50:20 +0100 |
| commit | 71589ebfea5a7adc49f013d405b3158ea612222a (patch) | |
| tree | 205ecd463c7405ee052a0dfd553426d92cef27c5 /src/wx/controls.cc | |
| parent | 23f2dc3bfb94930b938281c7f1e5663b761fa508 (diff) | |
Add SPL class.
Diffstat (limited to 'src/wx/controls.cc')
| -rw-r--r-- | src/wx/controls.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 0c9a27518..753014c46 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -26,6 +26,7 @@ #include "lib/job_manager.h" #include "lib/player_video.h" #include "lib/dcp_content.h" +#include "lib/spl_entry.h" #include <dcp/dcp.h> #include <dcp/cpl.h> #include <dcp/reel.h> @@ -192,7 +193,7 @@ Controls::add_clicked () { optional<CPL> sel = selected_cpl (); DCPOMATIC_ASSERT (sel); - _spl.push_back (SPLEntry(sel->first, sel->second)); + _spl.playlist.push_back (SPLEntry(sel->first, sel->second)); add_cpl_to_list (sel->first, _spl_view); SPLChanged (_spl); setup_sensitivity (); @@ -416,7 +417,7 @@ Controls::setup_sensitivity () { /* examine content is the only job which stops the viewer working */ bool const active_job = _active_job && *_active_job != "examine_content"; - bool const c = ((_film && !_film->content().empty()) || !_spl.empty()) && !active_job; + bool const c = ((_film && !_film->content().empty()) || !_spl.playlist.empty()) && !active_job; _slider->Enable (c); _rewind_button->Enable (c); |
