Cleanup: use enum class.
[dcpomatic.git] / src / wx / video_view.cc
index 4d80e2535248ceaccc35621bfa6c59435c3768b8..331095253127896dd0f824c9bef6c0d5a9d01997 100644 (file)
@@ -28,7 +28,6 @@
 #include <sys/time.h>
 
 
-using std::pair;
 using std::shared_ptr;
 using boost::optional;
 
@@ -77,11 +76,11 @@ VideoView::get_next_frame (bool non_blocking)
        do {
                Butler::Error e;
                auto pv = butler->get_video (!non_blocking, &e);
-               if (e.code == Butler::Error::DIED) {
+               if (e.code == Butler::Error::Code::DIED) {
                        LOG_ERROR ("Butler died with %1", e.summary());
                }
                if (!pv.first) {
-                       return e.code == Butler::Error::AGAIN ? AGAIN : FAIL;
+                       return e.code == Butler::Error::Code::AGAIN ? AGAIN : FAIL;
                }
                _player_video = pv;
        } while (