diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-15 22:26:47 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-16 10:12:09 +0200 |
| commit | 0e896f9f37db001f34c876ed5fc50e874f96ae09 (patch) | |
| tree | 29e97f6e86204885fa1a1e55f2726e878313296c /src/wx/video_view.cc | |
| parent | b5d3e588919ba89e4dca9cf302b3b29cda5f136c (diff) | |
Use an enum instead of a bool to specify blocking/non-blocking.
Diffstat (limited to 'src/wx/video_view.cc')
| -rw-r--r-- | src/wx/video_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/video_view.cc b/src/wx/video_view.cc index 331095253..1c645f11f 100644 --- a/src/wx/video_view.cc +++ b/src/wx/video_view.cc @@ -75,7 +75,7 @@ VideoView::get_next_frame (bool non_blocking) do { Butler::Error e; - auto pv = butler->get_video (!non_blocking, &e); + auto pv = butler->get_video (non_blocking ? Butler::Behaviour::NON_BLOCKING : Butler::Behaviour::BLOCKING, &e); if (e.code == Butler::Error::Code::DIED) { LOG_ERROR ("Butler died with %1", e.summary()); } |
