Fix build with older boost.
[dcpomatic.git] / src / wx / player_information.cc
index 5f480d5b4902832b14886a3aeb726c1d154fb7e8..f0eaa59bbea8e643ce7900f332fc3836e824061e 100644 (file)
@@ -30,9 +30,9 @@
 
 using std::cout;
 using std::string;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 
 /* This should be even */
@@ -90,7 +90,13 @@ PlayerInformation::periodic_update ()
 {
        shared_ptr<FilmViewer> fv = _viewer.lock ();
        if (fv) {
-               checked_set (_dropped, wxString::Format(_("Dropped frames: %d"), fv->dropped()));
+               wxString s = wxString::Format(_("Dropped frames: %d"), fv->dropped() + fv->errored());
+               if (fv->errored() == 1) {
+                       s += wxString::Format(_(" (%d error)"), fv->errored());
+               } else if (fv->errored() > 1) {
+                       s += wxString::Format(_(" (%d errors)"), fv->errored());
+               }
+               checked_set (_dropped, s);
        }
 }