From f762833c3348003df6d0c026582776a6e577cf76 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 8 Apr 2024 23:59:39 +0200 Subject: Don't emit video until film's end if we are seeking. Otherwise if we seek to the frame just before the end of the DCP we'll call emit_video_until() with _next_video unset, causing that method to emit video for the whole film. The point of this emit_video_until() call is only to pad a space between the end of the video content and the end of the film. --- src/lib/player.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/player.cc b/src/lib/player.cc index dba02cfba..913d7392f 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -887,8 +887,10 @@ 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 (_next_video_time) { + LOG_DEBUG_PLAYER("Done: emit video until end of film at %1", to_string(film->length())); + emit_video_until(film->length()); + } if (_shuffler) { _shuffler->flush (); -- cgit v1.2.3