Put Image in dcpomatic:: to avoid Fastvideo name clash.
[dcpomatic.git] / src / wx / video_view.h
index f9e0670435ed13edaa2e919cc373e11d12a0a48d..825273373b9bde74161c63a4c537058f4fab12c8 100644 (file)
 #include <boost/thread.hpp>
 #include <boost/noncopyable.hpp>
 
-class Image;
-class wxWindow;
 class FilmViewer;
 class PlayerVideo;
+class wxWindow;
+
+namespace dcpomatic {
+       class Image;
+}
 
 class VideoView : public ExceptionStore, public boost::noncopyable
 {
@@ -66,6 +69,11 @@ public:
                return _dropped;
        }
 
+       int errored () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _errored;
+       }
+
        int gets () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _gets;
@@ -157,6 +165,7 @@ private:
        bool _three_d;
 
        int _dropped;
+       int _errored;
        int _gets;
 };