diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-10-14 22:16:32 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-10-14 22:16:32 +0000 |
commit | 5233af2142e5fd045f922a82fef0c76c62684a7b (patch) | |
tree | c1b767730eb7360794c51b1af7b78e4d43fca18c /m4 | |
parent | 90a24be6db150d94d8ceea2b1f56dff8a2880d01 (diff) | |
download | xine-lib-5233af2142e5fd045f922a82fef0c76c62684a7b.tar.gz xine-lib-5233af2142e5fd045f922a82fef0c76c62684a7b.tar.bz2 |
Add a callback to the buffer_pool_alloc function.
The goal is to detect in the net_buf_ctrl if there is no more free buffer in a fifo, which indicates there will be a deadlock if the engine is not unpaused.
Currently this detection is done from the "put" callback, it's not a safe solution, nothing prevents a demuxer to allocate 2 buffers before calling put().
The impact is low, only one test per buffer_pool_alloc call if no callback is registered.
It's done exactly the same way as the put and get callbacks.
CVS patchset: 5520
CVS date: 2003/10/14 22:16:32
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions