diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-10-05 01:56:57 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-10-05 01:56:57 +0000 |
commit | 7079729eb45312aeae2108303bcb3ec85962b3ef (patch) | |
tree | 177ac4c7d6c9710ecc54da860e12842ab6082299 /src/xine-engine/xine_internal.h | |
parent | 55b8d3f50b253022c61a809f51fe7c68790e1402 (diff) | |
download | xine-lib-7079729eb45312aeae2108303bcb3ec85962b3ef.tar.gz xine-lib-7079729eb45312aeae2108303bcb3ec85962b3ef.tar.bz2 |
fix a long standing deadlock condition
(in fact it still possible, although very very very difficult to
trigger. hint: do a xine_play at the same time the decoders receive
end of stream buffers and buffer pool is empty :-)
CVS patchset: 735
CVS date: 2001/10/05 01:56:57
Diffstat (limited to 'src/xine-engine/xine_internal.h')
-rw-r--r-- | src/xine-engine/xine_internal.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xine-engine/xine_internal.h b/src/xine-engine/xine_internal.h index 9adeb26f5..ebc659d32 100644 --- a/src/xine-engine/xine_internal.h +++ b/src/xine-engine/xine_internal.h @@ -1,4 +1,4 @@ -/* +/* * Copyright (C) 2000-2001 the xine project * * This file is part of xine, a unix video player. @@ -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: xine_internal.h,v 1.45 2001/09/26 01:18:19 guenter Exp $ + * $Id: xine_internal.h,v 1.46 2001/10/05 01:56:57 miguelfreitas Exp $ * */ @@ -192,6 +192,9 @@ struct xine_s { /* Lock for xine player functions */ pthread_mutex_t xine_lock; + /* Lock for xxx_finished variables */ + pthread_mutex_t finished_lock; + /* Array of event handlers. */ event_listener_t event_listeners[XINE_MAX_EVENT_LISTENERS]; uint16_t num_event_listeners; |