# HG changeset patch # User anders # Date 1007468607 0 # Node ID ea7c1bfc4391cd35122a2fb1c76ac8aa5525ff47 # Parent 4a5d56e897354dad0b0f07cbd7d5136e478ff6d9 Global variables protected using volatile diff -r 4a5d56e89735 -r ea7c1bfc4391 libao2/ao_plugin.c --- 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){