} else {
clip.stream_idx = ui->preview_display->get_stream_idx();
}
- if (clip.pts_out == -1) {
- clip.pts_out = clip.pts_in + int64_t(TIMEBASE) * 86400 * 7; // One week; effectively infinite, but without overflow issues.
- }
playlist_clips->add_clip(clip);
playlist_selection_changed();
for (size_t row = currently_playing_idx; row < clips.size(); ++row) {
const Clip &clip = clips[row].clip;
double clip_length = double(clip.pts_out - clip.pts_in) / TIMEBASE / clip.speed;
- if (clip_length >= 86400.0) { // More than one day.
+ if (clip_length >= 86400.0 || clip.pts_out == -1) { // More than one day.
++remaining.num_infinite;
} else {
if (row == currently_playing_idx) {