summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-02-08 00:52:27 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-12 21:01:59 +0100
commit7b19d27983cb8078e8b35407a25e62da4ec687fe (patch)
tree1d038a938e81eb452dc3c8c970d3e54edd307734 /src/lib/player.cc
parent55c53dd8621a30d3c39858216da6b5d2e6445fb0 (diff)
Re-use assets verbatim if they do not need to change (#448).
Diffstat (limited to 'src/lib/player.cc')
-rw-r--r--src/lib/player.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 86f6e1082..316cf7e2b 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -758,10 +758,10 @@ Player::pass()
earliest_content->done = earliest_content->decoder->pass();
auto dcp = dynamic_pointer_cast<DCPContent>(earliest_content->content);
if (dcp && !_play_reusable) {
- if (dcp->reference_video()) {
+ if (dcp->can_reuse_video(film)) {
_next_video_time = dcp->end(film);
}
- if (dcp->reference_audio()) {
+ if (dcp->can_reuse_audio(film)) {
/* We are skipping some referenced DCP audio content, so we need to update _next_audio_time
to `hide' the fact that no audio was emitted during the referenced DCP (though
we need to behave as though it was).