summaryrefslogtreecommitdiff
path: root/src/lib/butler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-08-04 01:28:57 +0100
committerCarl Hetherington <cth@carlh.net>2017-08-14 21:07:49 +0100
commit9de96c328babc3944f5a9b4d12da9471e3a33ef7 (patch)
tree0b2fb5ce5386c5726cdd3e2bde5a9b93058977f9 /src/lib/butler.cc
parent63d301ca5f4518c2d559066cc7909e7acb62cd7f (diff)
Remove believed-unnecessary player-changed handler in butler.
Diffstat (limited to 'src/lib/butler.cc')
-rw-r--r--src/lib/butler.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc
index 2b6010aaa..ea0950afb 100644
--- a/src/lib/butler.cc
+++ b/src/lib/butler.cc
@@ -59,7 +59,6 @@ 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));
- _player_changed_connection = _player->Changed.connect (bind (&Butler::player_changed, this));
_thread = new boost::thread (bind (&Butler::thread, this));
/* Create some threads to do work on the PlayerVideos we are creating; at present this is used to
@@ -231,14 +230,6 @@ Butler::audio (shared_ptr<AudioBuffers> audio)
_audio.put (remap (audio, _audio_channels, _audio_mapping));
}
-void
-Butler::player_changed ()
-{
- _video.clear ();
- _audio.clear ();
- _summon.notify_all ();
-}
-
/** Try to get `frames' frames of audio and copy it into `out'. Silence
* will be filled if no audio is available.
* @return true if there was a buffer underrun, otherwise false.