projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
588a389
)
It may not be allowed to request a zero timeout on macOS.
author
Carl Hetherington
<cth@carlh.net>
Wed, 19 Feb 2020 19:13:49 +0000
(20:13 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 19 Feb 2020 19:13:49 +0000
(20:13 +0100)
src/wx/simple_video_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/simple_video_view.cc
b/src/wx/simple_video_view.cc
index ae13fe1bcde1d10502acb594bd3cd906f29b5d3f..e2ef866c426b1ee6ff5a56a2605a20f448ce06fc 100644
(file)
--- a/
src/wx/simple_video_view.cc
+++ b/
src/wx/simple_video_view.cc
@@
-158,7
+158,7
@@
SimpleVideoView::timer ()
}
LOG_DEBUG_PLAYER("%1 -> %2; delay %3", next.seconds(), _viewer->time().seconds(), max((next.seconds() - _viewer->time().seconds()) * 1000, 1.0));
- _timer.Start (
time_until_next_frame().get_value_or(0
), wxTIMER_ONE_SHOT);
+ _timer.Start (
max(1, time_until_next_frame().get_value_or(0)
), wxTIMER_ONE_SHOT);
if (_viewer->butler()) {
_viewer->butler()->rethrow ();