You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fix sleep time calculation to change when the project profile is changed (big bug), and add some additional logging/debugging statements
This commit is contained in:
@@ -77,10 +77,9 @@ namespace openshot
|
||||
using ms = std::chrono::milliseconds;
|
||||
using double_ms = std::chrono::duration<double, ms::period>;
|
||||
|
||||
// Calculate on-screen time for a single frame in milliseconds
|
||||
const auto frame_duration = double_ms(1000.0 / reader->info.fps.ToDouble());
|
||||
|
||||
while (!threadShouldExit() && is_playing) {
|
||||
// Calculate on-screen time for a single frame in milliseconds
|
||||
const auto frame_duration = double_ms(1000.0 / reader->info.fps.ToDouble());
|
||||
|
||||
// Cache frames before the other threads need them
|
||||
// Cache frames up to the max frames. Reset to current position
|
||||
|
||||
Reference in New Issue
Block a user