#include "lib/butler.h"
#include <boost/optional.hpp>
+using std::pair;
using boost::shared_ptr;
using boost::optional;
, _eyes (EYES_LEFT)
, _three_d (false)
, _dropped (0)
+ , _errored (0)
, _gets (0)
{
_player_video.first->eyes() != EYES_BOTH
);
+ if (_player_video.first && _player_video.first->error()) {
+ ++_errored;
+ }
+
return true;
}
{
boost::mutex::scoped_lock lm (_mutex);
_dropped = 0;
+ _errored = 0;
}
bool
VideoView::refresh_metadata (shared_ptr<const Film> film, dcp::Size video_container_size, dcp::Size film_frame_size)
{
- boost::mutex::scoped_lock lm (_mutex);
- if (!_player_video.first) {
+ pair<shared_ptr<PlayerVideo>, dcpomatic::DCPTime> pv = player_video ();
+ if (!pv.first) {
return false;
}
- if (!_player_video.first->reset_metadata (film, video_container_size, film_frame_size)) {
+ if (!pv.first->reset_metadata (film, video_container_size, film_frame_size)) {
return false;
}