diff options
| author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-09-18 15:37:11 +0000 |
|---|---|---|
| committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-09-18 15:37:11 +0000 |
| commit | 8d1e6097673f2152fa9f98041610973d3ee6a52a (patch) | |
| tree | ddac74fca0eb844d5b2daac8d818b152f98a37f8 /src/xine-engine/xine_internal.h | |
| parent | e4ac1f1382f67f61f527d41ab4f32c34720f0c2d (diff) | |
| download | xine-lib-8d1e6097673f2152fa9f98041610973d3ee6a52a.tar.gz xine-lib-8d1e6097673f2152fa9f98041610973d3ee6a52a.tar.bz2 | |
fix reentrant in event listeners by only allowing one event per type
CVS patchset: 2689
CVS date: 2002/09/18 15:37:11
Diffstat (limited to 'src/xine-engine/xine_internal.h')
| -rw-r--r-- | src/xine-engine/xine_internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xine-engine/xine_internal.h b/src/xine-engine/xine_internal.h index 40cc188c0..fdb810114 100644 --- a/src/xine-engine/xine_internal.h +++ b/src/xine-engine/xine_internal.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: xine_internal.h,v 1.101 2002/09/18 06:42:23 jcdutton Exp $ + * $Id: xine_internal.h,v 1.102 2002/09/18 15:37:11 mroi Exp $ * */ @@ -69,6 +69,7 @@ extern "C" { #define VIDEO_DECODER_IFACE_VERSION 10 #define AUDIO_DECODER_IFACE_VERSION 9 #define XINE_MAX_EVENT_LISTENERS 50 +#define XINE_MAX_EVENT_TYPES 100 /* used by plugin loader */ #define XINE_VERSION_CODE XINE_MAJOR_VERSION*10000+XINE_MINOR_VERSION*100+XINE_SUB_VERSION @@ -222,6 +223,9 @@ struct xine_s { xine_event_listener_cb_t event_listeners[XINE_MAX_EVENT_LISTENERS]; void *event_listener_user_data[XINE_MAX_EVENT_LISTENERS]; uint16_t num_event_listeners; + uint8_t event_pending[XINE_MAX_EVENT_TYPES]; + pthread_cond_t event_handled; + pthread_mutex_t event_lock; /* scratch string buffers */ char str[1024]; |
