diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-28 16:38:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-28 16:38:13 +0100 |
| commit | 5642ab947867fb65f2d8293481dd37a5a08cdb41 (patch) | |
| tree | 0e34fb8b6d14aa37a1ae0e9dcd347187182269f9 | |
| parent | 677901bbd7dc2d9195646a2ad2c5a58371f9a8a3 (diff) | |
Changes to DCP rate must update player pieces.
Piece contains a copy of the DCP video rate so we need new pieces
if this changes. Fixes #699.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | src/lib/player.cc | 8 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2015-09-28 c.hetherington <cth@carlh.net> + + * Fix update of display when changing DCP video rate (#699). + 2015-09-28 Carl Hetherington <cth@carlh.net> * Version 2.3.8 released. diff --git a/src/lib/player.cc b/src/lib/player.cc index 64fcfc93e..751e681bd 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -263,7 +263,13 @@ Player::film_changed (Film::Property p) last time we were run. */ - if (p == Film::CONTAINER || p == Film::VIDEO_FRAME_RATE) { + if (p == Film::CONTAINER) { + Changed (false); + } else if (p == Film::VIDEO_FRAME_RATE) { + /* Pieces contain a FrameRateChange which contains the DCP frame rate, + so we need new pieces here. + */ + _have_valid_pieces = false; Changed (false); } else if (p == Film::AUDIO_PROCESSOR) { if (_film->audio_processor ()) { |
