diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-02-19 20:13:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-02-19 20:13:49 +0100 |
| commit | 61efbb1cfe73c2a41896e60a8a335457e30674d1 (patch) | |
| tree | 2abf9b34e1622ee0c0576282cd29c146a79885bb /src | |
| parent | 588a3899fd6069f18b6e9f3d5ec62f2e938e034d (diff) | |
It may not be allowed to request a zero timeout on macOS.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/simple_video_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/simple_video_view.cc b/src/wx/simple_video_view.cc index ae13fe1bc..e2ef866c4 100644 --- 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 (); |
