Basic and rather clumsy option to respect KDM validity windows.
[dcpomatic.git] / src / wx / film_viewer.cc
index c062524e93fce32db1d51a4a1de90a66d4e1fa4f..d45da20213c3da6197a6adff0bf0df2f129ea51b 100644 (file)
@@ -406,6 +406,12 @@ FilmViewer::start ()
                return;
        }
 
+       optional<bool> v = PlaybackPermitted ();
+       if (v && !*v) {
+               /* Computer says no */
+               return;
+       }
+
        if (_audio.isStreamOpen()) {
                _audio.setStreamTime (_video_position.seconds());
                _audio.startStream ();