Fix missing LengthChange() signal on repeating content.
authorCarl Hetherington <cth@carlh.net>
Fri, 13 Dec 2024 23:34:17 +0000 (00:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 13 Dec 2024 23:34:17 +0000 (00:34 +0100)
Previously strange things would happen when repeating some content and
then playing the resulting film (because various things would not notice
that the film length had changed).

src/lib/playlist.cc

index ebeac47e2724dffa0c44db08fab11d08965db5ec..a0d7d6531c3f10f6ec8c0720fabd18d4419f5815 100644 (file)
@@ -599,6 +599,8 @@ Playlist::repeat (shared_ptr<const Film> film, ContentList c, int n)
        }
 
        Change (ChangeType::DONE);
+
+       LengthChange();
 }