diff options
author | Rich J Wareham <richwareham@users.sourceforge.net> | 2001-10-18 14:42:59 +0000 |
---|---|---|
committer | Rich J Wareham <richwareham@users.sourceforge.net> | 2001-10-18 14:42:59 +0000 |
commit | 99b10adaf384ec06310020e553e5081be6624128 (patch) | |
tree | 53b8e7b6004289cb922669b93170c97bec94fe24 /src/xine-engine/xine.c | |
parent | c19c9b4e2690724ef09066b37cfabdc81c171c06 (diff) | |
download | xine-lib-99b10adaf384ec06310020e553e5081be6624128.tar.gz xine-lib-99b10adaf384ec06310020e553e5081be6624128.tar.bz2 |
Slight re-ordering to make sure that input plugins can register event listeners
CVS patchset: 830
CVS date: 2001/10/18 14:42:59
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 1cbdfcf66..6480bf670 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -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.c,v 1.67 2001/10/09 03:06:24 miguelfreitas Exp $ + * $Id: xine.c,v 1.68 2001/10/18 14:43:00 richwareham Exp $ * * top-level xine functions * @@ -441,6 +441,14 @@ xine_t *xine_init (vo_driver_t *vo, pthread_mutex_init (&this->finished_lock, NULL); /* + * init event listeners + */ + this->num_event_listeners = 0; /* Initially there are none */ + this->cur_input_plugin = NULL; /* In case the input plugin event handlers + * are called too early. */ + this->cur_spu_decoder_plugin = NULL; + + /* * create a metronom */ @@ -475,11 +483,8 @@ xine_t *xine_init (vo_driver_t *vo, audio_decoder_init (this); printf("xine_init returning\n"); - /* - * init event listeners - */ - this->num_event_listeners = 0; /* Initially there are none */ - + /* Add an event listener */ + if((xine_register_event_listener(this, event_handler)) < 1) { fprintf(stderr, "xine_register_event_listener() failed.\n"); } |