]> git.sesse.net Git - nageru/commitdiff
Mark infinite clips as such in the machine-readable part of the subtitle track.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 27 Feb 2019 22:23:17 +0000 (23:23 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 27 Feb 2019 22:23:17 +0000 (23:23 +0100)
futatabi/player.cpp

index fa094be98b3bfb715730ed4eab3d3b74e0255900..586df48c470bf0ec4a8682df31da60334b2cdccc 100644 (file)
@@ -340,7 +340,7 @@ void Player::play_playlist_once()
                                ss.imbue(locale("C"));
                                ss.precision(3);
                                ss << "Futatabi " NAGERU_VERSION ";PLAYING;";
-                               ss << fixed << time_remaining.t;
+                               ss << fixed << (time_remaining.num_infinite * 86400.0 + time_remaining.t);
                                ss << ";" << format_duration(time_remaining) << " left";
                                subtitle = ss.str();
                        }