Remove unused parameter.
authorCarl Hetherington <cth@carlh.net>
Fri, 3 Aug 2018 23:18:22 +0000 (00:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 3 Aug 2018 23:18:22 +0000 (00:18 +0100)
src/lib/butler.cc
src/lib/butler.h

index aee5846..6a1cc68 100644 (file)
@@ -63,7 +63,7 @@ Butler::Butler (shared_ptr<Player> player, shared_ptr<Log> log, AudioMapping aud
 {
        _player_video_connection = _player->Video.connect (bind (&Butler::video, this, _1, _2));
        _player_audio_connection = _player->Audio.connect (bind (&Butler::audio, this, _1, _2));
-       _player_changed_connection = _player->Changed.connect (bind (&Butler::player_changed, this, _1));
+       _player_changed_connection = _player->Changed.connect (bind (&Butler::player_changed, this));
        _thread = new boost::thread (bind (&Butler::thread, this));
 #ifdef DCPOMATIC_LINUX
        pthread_setname_np (_thread->native_handle(), "butler");
@@ -299,7 +299,7 @@ Butler::memory_used () const
 }
 
 void
-Butler::player_changed (int what)
+Butler::player_changed ()
 {
        boost::mutex::scoped_lock lm (_mutex);
        if (_died || _pending_seek_position) {
index e6553cf..7e97bd3 100644 (file)
@@ -53,7 +53,7 @@ private:
        void audio (boost::shared_ptr<AudioBuffers> audio, DCPTime time);
        bool should_run () const;
        void prepare (boost::weak_ptr<PlayerVideo> video) const;
-       void player_changed (int);
+       void player_changed ();
        void seek_unlocked (DCPTime position, bool accurate);
 
        boost::shared_ptr<Player> _player;