summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-08-03 17:53:13 +0100
committerCarl Hetherington <cth@carlh.net>2017-08-14 21:07:49 +0100
commite952a7b0681d1ad2fc6ebcd0cd7231bf59bbe043 (patch)
treedd190efe952980ee6ce35f95029d164470e413ce /src
parente0c524cbc4f006a4319c3ce8aa7625f9d70d054a (diff)
I think Butler should just clear itself out when the player changes.
Other layers will seek as appropriate, we shouldn't fight them I don't think.
Diffstat (limited to 'src')
-rw-r--r--src/lib/butler.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc
index ef565c02b..db1ef7ffa 100644
--- a/src/lib/butler.cc
+++ b/src/lib/butler.cc
@@ -234,19 +234,8 @@ Butler::audio (shared_ptr<AudioBuffers> audio)
void
Butler::player_changed ()
{
- optional<DCPTime> t;
-
- {
- boost::mutex::scoped_lock lm (_mutex);
- t = _video.earliest ();
- }
-
- if (t) {
- seek (*t, true);
- } else {
- _video.clear ();
- _audio.clear ();
- }
+ _video.clear ();
+ _audio.clear ();
}
/** Try to get `frames' frames of audio and copy it into `out'. Silence