Fix slightly short video reels in some cases.
authorCarl Hetherington <cth@carlh.net>
Tue, 16 May 2017 09:46:57 +0000 (10:46 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 16 May 2017 09:46:57 +0000 (10:46 +0100)
src/lib/player.cc

index 8ebeb236d2fb27428ff03b571380bef51f68b976..2fc062bb513baf1d8c7ea2a0ae7a2145c079ee0c 100644 (file)
@@ -557,7 +557,7 @@ Player::pass ()
        /* Fill some black if we would emit before the earliest piece of content.  This is so we act like a phantom
           Piece which emits black in spaces (we only emit if we are the earliest thing)
        */
-       if (earliest && video_fill_from && *video_fill_from < earliest_content && ((fill_towards - *video_fill_from)) > one_video_frame()) {
+       if (earliest && video_fill_from && *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()) {