From 90f50f5892f73617e1f6259bf49460df8f77cbcb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 May 2017 14:22:59 +0100 Subject: Fix black fill where there is no earliest content. --- src/lib/player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()) { -- cgit v1.2.3