[Mplayer-cvslog] CVS: main/libao2 ao_plugin.c,1.4,1.5

Anders Johansson anders at mplayer.dev.hu
Tue Dec 4 13:23:29 CET 2001


Update of /cvsroot/mplayer/main/libao2
In directory mplayer:/var/tmp.root/cvs-serv18543/libao2

Modified Files:
	ao_plugin.c 
Log Message:
Global variables protected using volatile

Index: ao_plugin.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_plugin.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ao_plugin.c	3 Dec 2001 14:04:55 -0000	1.4
+++ ao_plugin.c	4 Dec 2001 12:23:27 -0000	1.5
@@ -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){




More information about the MPlayer-cvslog mailing list