diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-23 23:02:59 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-01 16:39:19 +0100 |
| commit | ba952572453de2eee175cbcb7cba17ff89c47562 (patch) | |
| tree | a1bcdd98139560dd43905b282ca1265a5894da60 /src | |
| parent | 6097970d8015995ef36bfdde479515ff3bc83930 (diff) | |
Move pass.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/piece.h | 2 | ||||
| -rw-r--r-- | src/lib/player.cc | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/piece.h b/src/lib/piece.h index f150dfe53..f4f12b2b1 100644 --- a/src/lib/piece.h +++ b/src/lib/piece.h @@ -40,6 +40,8 @@ public: boost::optional<dcpomatic::DCPTime> position (boost::shared_ptr<const Film> film); bool has_text () const; + void pass (); + dcpomatic::DCPTime position () const; dcpomatic::DCPTime end (boost::shared_ptr<const Film> film) const; diff --git a/src/lib/player.cc b/src/lib/player.cc index a0bd257be..ad5ba56bd 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -596,7 +596,7 @@ Player::pass () case CONTENT: { LOG_DEBUG_PLAYER ("Calling pass() on %1", earliest_content->content->path(0)); - earliest_content->done = earliest_content->decoder->pass (); + earliest_content->pass (); shared_ptr<DCPContent> dcp = dynamic_pointer_cast<DCPContent>(earliest_content->content); if (dcp && !_play_referenced && dcp->reference_audio()) { /* We are skipping some referenced DCP audio content, so we need to update _last_audio_time |
