core: audio: cut audio writes at end of timeline part
commit52f11f73b1b645290679a460329585ded512d8ca
authorUoti Urpala <uau@mplayer2.org>
Thu, 7 Apr 2011 18:17:51 +0000 (7 21:17 +0300)
committerUoti Urpala <uau@mplayer2.org>
Thu, 7 Apr 2011 18:17:51 +0000 (7 21:17 +0300)
tree257850240c7640b8c53d23710926bf9d0b4a2a2b
parent968154ba77f8e8974d6dd36d1109a473b3ff5b6c
core: audio: cut audio writes at end of timeline part

Cut audio data written to AO at the point where current timeline part
ends (before, AO buffers were always completely filled, but playback
of the "extra" audio was then cut short by resetting the AO when
switching timeline parts). This doesn't make much difference for
current playback behavior, but will be used by timeline support for
audio-only files and is necessary for future encoding support where
"playback" of written audio cannot be aborted later.
mplayer.c