swaroop: go to black on stop in player.
authorCarl Hetherington <cth@carlh.net>
Tue, 9 Oct 2018 19:11:01 +0000 (20:11 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 9 Oct 2018 19:11:36 +0000 (20:11 +0100)
src/tools/dcpomatic_player.cc

index 5bc9ace36fe6deb4e7fc5cf9747448a18d5d177d..cc6e294ff6e0b2108a8e454b8ca3c72f00685001 100644 (file)
@@ -383,7 +383,8 @@ public:
                /* Start off as Flat */
                _film->set_container (Ratio::from_id("185"));
 
-               DCPTime position;
+               /* Put 1 frame of black at the start so when we seek to 0 we don't see anything */
+               DCPTime position = DCPTime::from_frames(1, _film->video_frame_rate());
                shared_ptr<DCPContent> first;
 
                BOOST_FOREACH (SPLEntry i, spl) {