A previous commit took care to make Decoder::position() not be updated
authorCarl Hetherington <cth@carlh.net>
Tue, 2 Jan 2018 21:09:36 +0000 (21:09 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 2 Jan 2018 21:09:36 +0000 (21:09 +0000)
commit2537a2d959a5872c2e75b322022a7679d24c7e60
treee0180a52fc2682676736c59c5b4f1b6dd3e6fe71
parente7adac0f25e0d2a38be56e4477ed78b8b34b8b34
A previous commit took care to make Decoder::position() not be updated
if the data that was emitted from the decoder was not taken by the player.

This means that when the decoder moves into its end trim the position will
stay where it is (since the player does not take the data).

I can't see the point of doing this; the only use of Decoder::position()
is to decide what to pass() next (I think).

It is also inconvenient because we would like to check Decoder::position()
to decide whether to stop passing a decoder since it's in its end trim
(not doing this causes #1154).
src/lib/audio_decoder.cc
src/lib/audio_decoder.h
src/lib/player.cc
src/lib/player.h
src/lib/video_decoder.cc
src/lib/video_decoder.h