X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmainwindow.cpp;h=1ed95c3dc5ab8ed27577510eda88577d6e5efdb5;hb=4d334dafa066cf9af7899a555e1145d1e4dd0b3d;hp=025f00ba27186437c1a2a2ed2999e5a219d1fa90;hpb=35fa8cce99a5d224609bde5bef15d13367506804;p=nageru diff --git a/futatabi/mainwindow.cpp b/futatabi/mainwindow.cpp index 025f00b..1ed95c3 100644 --- a/futatabi/mainwindow.cpp +++ b/futatabi/mainwindow.cpp @@ -431,6 +431,14 @@ void MainWindow::defer_timer_expired() void MainWindow::content_changed() { + // If we are playing, update the part of the playlist that's not playing yet. + vector clips; + for (unsigned row = 0; row < playlist_clips->size(); ++row) { + clips.emplace_back(*playlist_clips->clip_with_id(row)); + } + live_player->splice_play(clips); + + // Serialize the state. if (defer_timeout->isActive() && (!currently_deferring_model_changes || deferred_change_id != current_change_id)) { // There's some deferred event waiting, but this event is unrelated.