diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-04-18 10:29:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-19 23:04:32 +0100 |
| commit | 76457a0e09f5040dee0c21dcf414eefc5faf7abd (patch) | |
| tree | 1c0261831dcd7d39335a3d137e74fbf4a94cd97a /src/lib | |
| parent | 6a4e591bde05d9700c1751105f7244e43ec72702 (diff) | |
Don't return 'no video' from get_video() until the player has finished and we have exhausted our store.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/butler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc index ca58bc13e..de982a0fe 100644 --- a/src/lib/butler.cc +++ b/src/lib/butler.cc @@ -112,7 +112,7 @@ Butler::get_video () _arrived.wait (lm); } - if (_finished) { + if (_video.empty() && _finished) { return make_pair (shared_ptr<PlayerVideo>(), DCPTime()); } |
