mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 13:17:13 +00:00
Global variables protected using volatile
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3309 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
68ac817cb7
commit
6942b2ba9b
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user