Changes to DCP rate must update player pieces.
authorCarl Hetherington <cth@carlh.net>
Mon, 28 Sep 2015 15:38:13 +0000 (16:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 28 Sep 2015 15:38:13 +0000 (16:38 +0100)
Piece contains a copy of the DCP video rate so we need new pieces
if this changes.  Fixes #699.

ChangeLog
src/lib/player.cc

index c2885e2b4a471615b6c0a2b1c5f16e97570a9db9..98de082233f9e8d09c9bd717f8f258e8eb164e1a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 64fcfc93e7682efcfef68394b6106920aa53bd05..751e681bd115c81a547c8484d3628f9f476ee642 100644 (file)
@@ -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 ()) {