Fix length of player output so it can be either the film's length or playlist's lengt...
[dcpomatic.git] / src / wx / standard_controls.cc
index 956f82c961111619137d5616fcb454a36a4484f1..5df89f8fecd05093738c089239c4ab03dc971c52 100644 (file)
@@ -74,3 +74,17 @@ StandardControls::setup_sensitivity ()
        bool const active_job = _active_job && *_active_job != "examine_content";
        _play_button->Enable (_film && !_film->content().empty() && !active_job);
 }
+
+void
+StandardControls::play ()
+{
+       _play_button->SetValue (true);
+       play_clicked ();
+}
+
+void
+StandardControls::stop ()
+{
+       _play_button->SetValue (false);
+       play_clicked ();
+}