Don't return 'no video' from get_video() until the player has finished and we have...
authorCarl Hetherington <cth@carlh.net>
Tue, 18 Apr 2017 09:29:43 +0000 (10:29 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Apr 2017 22:04:32 +0000 (23:04 +0100)
src/lib/butler.cc

index ca58bc13ea3ddbfa33ddbc33669e8bad7160b9aa..de982a0feb89a0f65c6aebb042caaab47a763585 100644 (file)
@@ -112,7 +112,7 @@ Butler::get_video ()
                _arrived.wait (lm);
        }
 
-       if (_finished) {
+       if (_video.empty() && _finished) {
                return make_pair (shared_ptr<PlayerVideo>(), DCPTime());
        }