summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-18 00:58:22 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-18 00:58:22 +0100
commit39db0a73a650e8f3bb390ccac1e5b3e36365ddd0 (patch)
tree2866bd232b3ba1817666bd5401f12e37408f52e3 /src/lib
parentbc9bd13a2d9df75057511deca71b943ab1183e19 (diff)
Player should fill towards the next video frame.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/player.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 00abc7190..0c9bcf363 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -541,6 +541,7 @@ Player::pass ()
NOT to fill gaps within content (the latter is done in ::video())
*/
DCPTime fill_towards = earliest ? earliest_content : _playlist->length();
+ fill_towards = fill_towards.ceil (_film->video_frame_rate ());
/* Work out where to fill video from */
optional<DCPTime> video_fill_from;
@@ -579,7 +580,7 @@ Player::pass ()
}
list<DCPTimePeriod> p = subtract(period, _no_video);
if (!p.empty ()) {
- fill_audio (period);
+ fill_audio (p.front());
}
filled = true;
}