Use possibly-safer means of emitting maybe_sequence.
authorCarl Hetherington <cth@carlh.net>
Fri, 7 Sep 2018 12:46:34 +0000 (13:46 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 7 Sep 2018 12:46:34 +0000 (13:46 +0100)
src/lib/film.cc

index 0000dca10485c63a09ffb9c41de1dce8d426c109..bd5724828b1d196ee279f428a963a2bcb5ee5611 100644 (file)
@@ -957,9 +957,8 @@ Film::signal_change (ChangeType type, Property p)
                if (p == Film::VIDEO_FRAME_RATE || p == Film::SEQUENCE) {
                        /* We want to call Playlist::maybe_sequence but this must happen after the
                           main signal emission (since the butler will see that emission and un-suspend itself).
-                          Doing it this way ensures that the Change signal above is emitted first.
                        */
-                       signal_manager->when_idle (boost::bind(&Playlist::maybe_sequence, _playlist.get()));
+                       emit (boost::bind(&Playlist::maybe_sequence, _playlist.get()));
                }
        } else {
                Change (type, p);