Fix failure to update project-wide audio level plot when content moves.
authorCarl Hetherington <cth@carlh.net>
Thu, 15 Apr 2021 21:51:53 +0000 (23:51 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 15 Apr 2021 23:11:04 +0000 (01:11 +0200)
src/lib/film.cc

index 7f6f8e498eb181d02760131d25e77d25fd80721e..0b717738d09bfacd7198b870003869123dd7edb7 100644 (file)
@@ -299,6 +299,13 @@ Film::audio_analysis_path (shared_ptr<const Playlist> playlist) const
                           recompute it.
                        */
                        digester.add (i->audio->gain());
+
+                       /* Likewise we only care about position if we're looking at a
+                        * whole-project view.
+                        */
+                       digester.add (i->position().get());
+                       digester.add (i->trim_start().get());
+                       digester.add (i->trim_end().get());
                }
        }