Add some more logs to the LOG_DEBUG_PLAYER set.
authorCarl Hetherington <cth@carlh.net>
Sun, 18 Feb 2024 22:34:48 +0000 (23:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 19 Feb 2024 08:54:43 +0000 (09:54 +0100)
src/lib/player.cc

index 3402cc12bfe92dcf7ee0a60fba5b6f4e6cd47bc9..6f9b70d0ae00460b9f0c1d041d2d7cad02beb3d5 100644 (file)
@@ -881,6 +881,7 @@ Player::pass ()
        }
 
        if (done) {
+               LOG_DEBUG_PLAYER("Done: emit video until end of film at %1", to_string(film->length()));
                emit_video_until(film->length());
 
                if (_shuffler) {
@@ -953,6 +954,7 @@ Player::open_subtitles_for_frame (DCPTime time) const
 void
 Player::emit_video_until(DCPTime time)
 {
+       LOG_DEBUG_PLAYER("emit_video_until %1; next video time is %2", to_string(time), to_string(_next_video_time.get_value_or({})));
        auto frame = [this](shared_ptr<PlayerVideo> pv, DCPTime time) {
                /* We need a delay to give a little wiggle room to ensure that relevant subtitles arrive at the
                   player before the video that requires them.