diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-22 15:02:06 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-22 15:02:06 +0000 |
commit | 1df4724ce1cf3057d8eb02aa3344b5cd826ea549 (patch) | |
tree | 899859cd95e857d38a760d6cb9ed937c268c5462 /src/xine-engine/buffer.h | |
parent | de8a6dff05d04f1c3095eb00a60ad544406c2bea (diff) | |
download | xine-lib-1df4724ce1cf3057d8eb02aa3344b5cd826ea549.tar.gz xine-lib-1df4724ce1cf3057d8eb02aa3344b5cd826ea549.tar.bz2 |
flush moved to decoder loop. that simplifies things a lot.
new buffer methods to avoid deadlocks doing flush from video_out
CVS patchset: 3629
CVS date: 2002/12/22 15:02:06
Diffstat (limited to 'src/xine-engine/buffer.h')
-rw-r--r-- | src/xine-engine/buffer.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h index 3fb3bd397..dad8752ae 100644 --- a/src/xine-engine/buffer.h +++ b/src/xine-engine/buffer.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: buffer.h,v 1.86 2002/12/21 12:56:52 miguelfreitas Exp $ + * $Id: buffer.h,v 1.87 2002/12/22 15:02:06 miguelfreitas Exp $ * * * contents: @@ -77,6 +77,7 @@ extern "C" { #define BUF_CONTROL_NEWPTS 0x01070000 #define BUF_CONTROL_RESET_DECODER 0x01080000 #define BUF_CONTROL_HEADERS_DONE 0x01090000 +#define BUF_CONTROL_FLUSH_DECODER 0x010a0000 /* video buffer types: (please keep in sync with buffer_types.c) */ @@ -404,6 +405,18 @@ struct fifo_buffer_s */ buf_element_t *(*buffer_pool_alloc) (fifo_buffer_t *this); + + + /* + * special functions, not used by demuxers + */ + + /* the same as buffer_pool_alloc but may fail if none is available */ + buf_element_t *(*buffer_pool_try_alloc) (fifo_buffer_t *this); + + /* the samme as put but insert at the head of the fifo */ + void (*insert) (fifo_buffer_t *fifo, buf_element_t *buf); + /* * private variables for buffer pool management |