summaryrefslogtreecommitdiff
path: root/src/wx/standard_controls.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-23 10:44:39 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-08 21:56:47 +0100
commit1d796edf59da644e91bd443505fb76e0397a1439 (patch)
treef66ea71a218dc9b0392bc4d7e164760c76097fe2 /src/wx/standard_controls.cc
parent89e92b3e7effafd2ca3aa1e9300777f2d2fb6183 (diff)
Basic stress-test function for player.
Diffstat (limited to 'src/wx/standard_controls.cc')
-rw-r--r--src/wx/standard_controls.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/wx/standard_controls.cc b/src/wx/standard_controls.cc
index 956f82c96..e9a31c86b 100644
--- a/src/wx/standard_controls.cc
+++ b/src/wx/standard_controls.cc
@@ -74,3 +74,19 @@ StandardControls::setup_sensitivity ()
bool const active_job = _active_job && *_active_job != "examine_content";
_play_button->Enable (_film && !_film->content().empty() && !active_job);
}
+
+#ifdef DCPOMATIC_PLAYER_STRESS_TEST
+void
+StandardControls::play ()
+{
+ _play_button->SetValue (true);
+ play_clicked ();
+}
+
+void
+StandardControls::stop ()
+{
+ _play_button->SetValue (false);
+ play_clicked ();
+}
+#endif