diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-16 14:22:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-16 14:22:59 +0100 |
| commit | 90f50f5892f73617e1f6259bf49460df8f77cbcb (patch) | |
| tree | 8641eb6ea50f11f7d509db98dbc21f94785f89c6 /src/lib | |
| parent | 793028f4f404d69a06ccaeec987174d04d0761ec (diff) | |
Fix black fill where there is no earliest content.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/player.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 3a87acc3c..0c17e08d0 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -554,7 +554,7 @@ Player::pass () Piece which emits black in spaces (we only emit if we are the earliest thing) */ /* XXX: this should take _no_video into account */ - if (earliest && video_fill_from && *video_fill_from < earliest_content && ((fill_towards - *video_fill_from)) >= one_video_frame()) { + if (video_fill_from && (!earliest || *video_fill_from < earliest_content) && ((fill_towards - *video_fill_from)) >= one_video_frame()) { emit_video (black_player_video_frame(), *video_fill_from); filled = true; } else if (_playlist->length() == DCPTime()) { |
