diff options
author | Matthias Kretz <kretz@kde.org> | 2007-12-02 23:03:46 +0100 |
---|---|---|
committer | Matthias Kretz <kretz@kde.org> | 2007-12-02 23:03:46 +0100 |
commit | fc74afb82c232221a4205579e1eddb26a91d1c26 (patch) | |
tree | 7c5ae11b420a85b4006a25189c9ee38f8c25277a /m4 | |
parent | 5a7b7dcb302085db68a44f7f7acb6e4abbb73a75 (diff) | |
download | xine-lib-fc74afb82c232221a4205579e1eddb26a91d1c26.tar.gz xine-lib-fc74afb82c232221a4205579e1eddb26a91d1c26.tar.bz2 |
Don't signal fifo->empty right after reading the last buffer
but only when a read was requested and the fifo is empty.
Rationale: ao_close uses fifo_wait_empty to make sure all buffers were written
to the driver before it calls close on the driver. But if empty is already
signaled when ao_loop just reads the next buffer then ao_close might close the
driver before ao_loop has a chance to send the buffer to the driver.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions