Store audio/video even when suspended.
authorCarl Hetherington <cth@carlh.net>
Tue, 11 Sep 2018 10:42:40 +0000 (11:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 11 Sep 2018 10:42:40 +0000 (11:42 +0100)
commit2a0ad7979b208f84916b13f7a37998aa3701e371
tree1e8525e227d71900211ca68209559cf19f94bb2d
parent5c974b2fc501b806a259dcdfbc01df07ef9cda79
Store audio/video even when suspended.

This is important for audio.  _audio.put() must be called with
sequential data, so if you're going to discard audio (as was
happening when _suspended) you need to clear _audio before
put()ting any more.

This happens with seek; when _pending_seek_position is set
_audio is cleared and then nothing more is added until the
seek is done.

_suspended may be set and then reset with no change having
happened (type _CANCELLED) so I think you have to keep storing
data in this case.  It will be discarded when the seek comes
around after a _DONE change.
src/lib/butler.cc