changeset 3308:ea7c1bfc4391

Global variables protected using volatile
author anders
date Tue, 04 Dec 2001 12:23:27 +0000
parents 4a5d56e89735
children 28f2ebcb5c95
files libao2/ao_plugin.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_plugin.c	Tue Dec 04 12:20:17 2001 +0000
+++ b/libao2/ao_plugin.c	Tue Dec 04 12:23:27 2001 +0000
@@ -30,11 +30,11 @@
   ao_plugin_functions_t* available_plugins[NPL]; // List of available plugins
 } ao_plugin_local_data_t;
 
-ao_plugin_local_data_t ao_plugin_local_data={NULL,NULL,AO_PLUGINS};
+static ao_plugin_local_data_t ao_plugin_local_data={NULL,NULL,AO_PLUGINS};
 
 // gloabal data 
-ao_plugin_data_t ao_plugin_data; // data used by the plugins
-ao_plugin_cfg_t  ao_plugin_cfg=CFG_DEFAULTS;  // cfg data set in cfg-mplayer.h
+volatile ao_plugin_data_t ao_plugin_data; // data used by the plugins
+volatile ao_plugin_cfg_t  ao_plugin_cfg=CFG_DEFAULTS;  // cfg data set in cfg-mplayer.h
 
 // to set/get/query special features/parameters
 static int control(int cmd,int arg){