From e952a7b0681d1ad2fc6ebcd0cd7231bf59bbe043 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 3 Aug 2017 17:53:13 +0100 Subject: [PATCH 1/1] 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. --- src/lib/butler.cc | 15 ++------------- 1 file 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 audio) void Butler::player_changed () { - optional 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 -- 2.30.2