Fix black fill where there is no earliest content.
authorCarl Hetherington <cth@carlh.net>
Tue, 16 May 2017 13:22:59 +0000 (14:22 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 16 May 2017 13:22:59 +0000 (14:22 +0100)
src/lib/player.cc

index 3a87acc3c6e0558bc78fe91ea0bb0aaadc86ae51..0c17e08d05dcd3b14024d7f92b380feca961fb23 100644 (file)
@@ -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()) {