Mercurial > audlegacy-plugins
diff src/aosd/aosd.c @ 883:e6d51d079a46 trunk
[svn] - aosd: use a single ghosd object for all of the osd showups; this will be a lot gentler to XLib and should definitely help with stability
author | giacomo |
---|---|
date | Tue, 20 Mar 2007 18:55:57 -0700 |
parents | 153bb82ff081 |
children | 16e51fb5908e |
line wrap: on
line diff
--- a/src/aosd/aosd.c Tue Mar 20 14:01:54 2007 -0700 +++ b/src/aosd/aosd.c Tue Mar 20 18:55:57 2007 -0700 @@ -27,7 +27,7 @@ aosd_cfg_t * global_config = NULL; -static gboolean plugin_is_active = FALSE; +gboolean plugin_is_active = FALSE; /* ***************** */ @@ -48,6 +48,8 @@ global_config = aosd_cfg_new(); aosd_cfg_load( global_config ); + aosd_osd_init(); + aosd_trigger_start( &global_config->osd->trigger ); return; @@ -61,17 +63,18 @@ { aosd_trigger_stop( &global_config->osd->trigger ); - aosd_shutdown(); + aosd_osd_shutdown(); + aosd_osd_cleanup(); if ( global_config != NULL ) { aosd_cfg_delete( global_config ); global_config = NULL; } - + plugin_is_active = FALSE; } - + return; }