Cleanup: use from_frames rather than from_seconds.
authorCarl Hetherington <cth@carlh.net>
Sat, 20 Mar 2021 08:02:16 +0000 (09:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 20 Mar 2021 08:02:16 +0000 (09:02 +0100)
src/wx/timecode.h

index bce527ed28c026dbae9a67ae002ac85c147d8a37..3746b32cd621a3fa4710b27bad1a76cd7db20899 100644 (file)
@@ -114,7 +114,7 @@ public:
                std::string const s = value_or_hint (_seconds);
                t += T::from_seconds (dcp::raw_convert<int>(s.empty() ? "0" : s));
                std::string const f = value_or_hint (_frames);
-               t += T::from_seconds (dcp::raw_convert<double>(f.empty() ? "0" : f) / fps);
+               t += T::from_frames (dcp::raw_convert<int>(f.empty() ? "0" : f), fps);
 
                return t;
        }