aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-04 12:23:27 +0000
committerGravatar anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-04 12:23:27 +0000
commit6942b2ba9bb98e794b67a234e39975f2ab3650ba (patch)
tree7f4a31f0097233ed98a782fbaed11d315c21902b
parent68ac817cb76dff6ac70df545927554cf9e6c4269 (diff)
Global variables protected using volatile
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3309 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libao2/ao_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libao2/ao_plugin.c b/libao2/ao_plugin.c
index d83c089ed6..2423c695f7 100644
--- a/libao2/ao_plugin.c
+++ b/libao2/ao_plugin.c
@@ -30,11 +30,11 @@ typedef struct ao_plugin_local_data_s
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){