Remove unused PlayerStatistics stuff.
authorCarl Hetherington <cth@carlh.net>
Wed, 15 Jul 2015 00:16:45 +0000 (01:16 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 15 Jul 2015 00:16:45 +0000 (01:16 +0100)
src/lib/player.cc
src/lib/player.h
src/lib/transcoder.cc

index bc13d6ab2ad72e8dd19f5fb4cdebccd2e3490755..0a4eb54e7aa09367b374011d5c7a490ee10405eb 100644 (file)
@@ -551,19 +551,6 @@ Player::dcp_to_content_subtitle (shared_ptr<const Piece> piece, DCPTime t) const
        return max (ContentTime (), ContentTime (s, piece->frc) + piece->content->trim_start());
 }
 
-void
-PlayerStatistics::dump (shared_ptr<Log> 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.
index 3cfca47368a7f122d1d630ea4bf27762895285a5..a795f8174323002900ece524f1cffcad88309cdd 100644 (file)
@@ -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<Log>) 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<AudioProcessor> _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;
index e0af2c5943bcd94d54aef1ed2ade12bca80cf63d..ad8e4ab9be7c43f834eac17be7d4486827f82c7f 100644 (file)
@@ -97,8 +97,6 @@ Transcoder::go ()
        _finishing = true;
        _encoder->end ();
        _writer->finish ();
-
-       _player->statistics().dump (_film->log ());
 }
 
 float