diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-03-15 23:22:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-03-15 23:22:50 +0100 |
| commit | 3e3e8433842820ce6380e8f5c1917ae1a28e2e57 (patch) | |
| tree | 4b93fad5288eb161affe643b092cbb942ab2a43f /src/wx | |
| parent | fbde12105a43cddb32ef2736cafd540cc5a70dda (diff) | |
Fix player stress testing with expanded controls.
Also correctly wait with a stress test until the DCP open
has completely finished.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/playlist_controls.cc | 14 | ||||
| -rw-r--r-- | src/wx/playlist_controls.h | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/wx/playlist_controls.cc b/src/wx/playlist_controls.cc index 844e15f04..edc4485e6 100644 --- a/src/wx/playlist_controls.cc +++ b/src/wx/playlist_controls.cc @@ -454,3 +454,17 @@ PlaylistControls::viewer_finished () _pause_button->Enable (false); } } + +#ifdef DCPOMATIC_PLAYER_STRESS_TEST +void +PlaylistControls::play () +{ + play_clicked (); +} + +void +PlaylistControls::stop () +{ + stop_clicked (); +} +#endif diff --git a/src/wx/playlist_controls.h b/src/wx/playlist_controls.h index dd6b77788..460924217 100644 --- a/src/wx/playlist_controls.h +++ b/src/wx/playlist_controls.h @@ -37,6 +37,11 @@ public: */ boost::signals2::signal<void (boost::weak_ptr<Film>)> ResetFilm; +#ifdef DCPOMATIC_PLAYER_STRESS_TEST + void play (); + void stop (); +#endif + private: void play_clicked (); void pause_clicked (); |
