summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-03-23 00:28:40 +0000
committerCarl Hetherington <cth@carlh.net>2018-03-23 00:28:40 +0000
commit3c42365762079289499bdc25144bb90b2e3509c6 (patch)
tree95083e45412b54f018d907e75192c17c92d3680d /src/wx
parent7bc349aa8da5a046a9e1b0c08e3fc657c380386b (diff)
Add space shortcut to start/stop playback (#1201).
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/film_viewer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h
index a41cb310e..190396601 100644
--- a/src/wx/film_viewer.h
+++ b/src/wx/film_viewer.h
@@ -66,6 +66,12 @@ public:
return _dropped;
}
+ void start ();
+ bool stop ();
+ bool playing () const {
+ return _playing;
+ }
+
int audio_callback (void* out, unsigned int frames);
boost::signals2::signal<void (boost::weak_ptr<PlayerVideo>)> ImageChanged;
@@ -100,8 +106,6 @@ private:
void recreate_butler ();
void config_changed (Config::Property);
DCPTime time () const;
- void start ();
- bool stop ();
Frame average_latency () const;
DCPTime one_video_frame () const;