From: Carl Hetherington Date: Wed, 15 Jul 2015 00:16:45 +0000 (+0100) Subject: Remove unused PlayerStatistics stuff. X-Git-Tag: v2.1.22~10 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=44c918a83e1e64922448ba20b5dfdcf30d026f84 Remove unused PlayerStatistics stuff. --- diff --git a/src/lib/player.cc b/src/lib/player.cc index bc13d6ab2..0a4eb54e7 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -551,19 +551,6 @@ Player::dcp_to_content_subtitle (shared_ptr piece, DCPTime t) const return max (ContentTime (), ContentTime (s, piece->frc) + piece->content->trim_start()); } -void -PlayerStatistics::dump (shared_ptr log) const -{ - log->log (String::compose ("Video: %1 good %2 skipped %3 black %4 repeat", video.good, video.skip, video.black, video.repeat), Log::TYPE_GENERAL); - log->log (String::compose ("Audio: %1 good %2 skipped %3 silence", audio.good, audio.skip, audio.silence.seconds()), Log::TYPE_GENERAL); -} - -PlayerStatistics const & -Player::statistics () const -{ - return _statistics; -} - /** @param burnt true to return only subtitles to be burnt, false to return only * subtitles that should not be burnt. This parameter will be ignored if * _always_burn_subtitles is true; in this case, all subtitles will be returned. diff --git a/src/lib/player.h b/src/lib/player.h index 3cfca4736..a795f8174 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -45,38 +45,6 @@ class PlayerVideo; class ImageProxy; class Font; -class PlayerStatistics -{ -public: - struct Video { - Video () - : black (0) - , repeat (0) - , good (0) - , skip (0) - {} - - int black; - int repeat; - int good; - int skip; - } video; - - struct Audio { - Audio () - : silence (0) - , good (0) - , skip (0) - {} - - DCPTime silence; - int64_t good; - int64_t skip; - } audio; - - void dump (boost::shared_ptr) const; -}; - /** @class Player * @brief A class which can `play' a Playlist. */ @@ -95,8 +63,6 @@ public: void set_enable_subtitles (bool enable); void set_always_burn_subtitles (bool burn); - PlayerStatistics const & statistics () const; - /** Emitted when something has changed such that if we went back and emitted * the last frame again it would look different. This is not emitted after * a seek. @@ -169,8 +135,6 @@ private: boost::shared_ptr _audio_processor; - PlayerStatistics _statistics; - boost::signals2::scoped_connection _film_changed_connection; boost::signals2::scoped_connection _playlist_changed_connection; boost::signals2::scoped_connection _playlist_content_changed_connection; diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index e0af2c594..ad8e4ab9b 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -97,8 +97,6 @@ Transcoder::go () _finishing = true; _encoder->end (); _writer->finish (); - - _player->statistics().dump (_film->log ()); } float