+ playlist_clips->set_currently_playing(-1, 0.0f);
+ ui->live_label->setText("Current output (paused)");
+ }
+}
+
+void MainWindow::live_player_clip_progress(double played_this_clip, double total_length)
+{
+ playlist_clips->set_currently_playing(playlist_clips->get_currently_playing(), played_this_clip / total_length);
+
+ double remaining = total_length - played_this_clip;
+ for (int row = playlist_clips->get_currently_playing() + 1; row < int(playlist_clips->size()); ++row) {
+ const Clip clip = *playlist_clips->clip(row);
+ remaining += double(clip.pts_out - clip.pts_in) / TIMEBASE / 0.5; // FIXME: stop hardcoding speed.