summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-24 22:53:14 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-24 22:53:14 +0100
commit55921ca13c8d8c4f4810f5c89d4f347977613cfb (patch)
tree321ac069609a0a2969bf010c3980074af6d0bed8 /src/tools
parentab8ef6d729e6a858c8719e463011813f82c9a6ea (diff)
Add swaroop-profile start/stop/pause buttons.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic_player.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc
index 06b83a97f..a01d5ecae 100644
--- a/src/tools/dcpomatic_player.cc
+++ b/src/tools/dcpomatic_player.cc
@@ -192,6 +192,7 @@ public:
UpdateChecker::instance()->StateChanged.connect (boost::bind (&DOMFrame::update_checker_state_changed, this));
_controls->DCPDirectorySelected.connect (boost::bind(&DOMFrame::load_dcp, this, _1));
+ _controls->DCPEjected.connect (boost::bind(&DOMFrame::eject_dcp, this));
setup_screen ();
}
@@ -290,6 +291,13 @@ public:
Config::instance()->set_decode_reduction (reduction);
}
+ void eject_dcp ()
+ {
+ _film.reset (new Film (optional<boost::filesystem::path>()));
+ _viewer->set_film (_film);
+ _info->triggered_update ();
+ }
+
void load_dcp (boost::filesystem::path dir)
{
_film.reset (new Film (optional<boost::filesystem::path>()));