From 7079729eb45312aeae2108303bcb3ec85962b3ef Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 5 Oct 2001 01:56:57 +0000 Subject: 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 --- src/xine-engine/xine_internal.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/xine-engine/xine_internal.h') 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; -- cgit v1.2.3