diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-04-18 10:05:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-19 23:04:32 +0100 |
| commit | 656c34046183fa649a802abaccf9ca89650589bf (patch) | |
| tree | 171f2c305a648463459ffc2afad08f52a7780fd4 /src | |
| parent | ee7c1a2abfaf7aa9ca31618cdd7f354a3076ceff (diff) | |
Clear out ring buffers when the player's output changes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/butler.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc index 81e09fbd3..ca58bc13e 100644 --- a/src/lib/butler.cc +++ b/src/lib/butler.cc @@ -172,6 +172,9 @@ Butler::player_changed () if (t) { seek (*t, true); + } else { + _video.clear (); + _audio.clear (); } } |
