Use an enum instead of a bool to specify blocking/non-blocking.
[dcpomatic.git] / src / wx / video_view.cc
index 331095253127896dd0f824c9bef6c0d5a9d01997..1c645f11f688bd6adab4924c07ad9b0fcd25811c 100644 (file)
@@ -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());
                }