]> git.sesse.net Git - nageru/blobdiff - futatabi/player.cpp
Fix the previous fix for the infinite display; it was causing crashes and odd stuff...
[nageru] / futatabi / player.cpp
index 910377a8236fb3a323bdc1b4559328b50725e5fe..f427d0566d1fd2c9eb24c6556adb32aeb5375362 100644 (file)
@@ -628,7 +628,7 @@ TimeRemaining compute_time_left(const vector<ClipWithID> &clips, size_t currentl
        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) {