Basic stress-test function for player.
[dcpomatic.git] / src / wx / standard_controls.cc
index 956f82c961111619137d5616fcb454a36a4484f1..e9a31c86b059d94fb2c802b5f46d63ae8488e421 100644 (file)
@@ -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