Add casts to subconfig entries in option lists to avoid the excessive
amount of "initialization discards qualifiers from pointer target
type" warnings. Also add const to the type of mpctx_get_audio_out to
eliminate a warning and make it match the type in the header (svn
r25793 had added a const to the header but not mplayer.c). Make
libmenu_vfs a table of pointers to const to eliminate another warning
plus make the table itself const.
Give them a OPT_ prefix, move them to m_option.h, move the "flags"
parameter to third position (so all start with option name, field
name, flags) and use "&m_option_type_x" in them instead of the
indirect #define "CONF_TYPE_X".
Add a 'struct vo *vo' argument to the x11_common.c functions that
access the variable so it's available as vo->opts->vo_ontop. To keep
VOs using the old API working create a global vo variable that is set
to the currently used old vo. "vo_ontop" will be #defined to
"global_vo->opts->vo_ontop", and x11_common.h will add defines like
the following when it is included by old VOs:
#define vo_x11_ontop() vo_x11_ontop(global_vo)
so that they will call the function according to the new declaration.
First part of option restructuring. The aim is to move option values
from a huge number of separate globals to a single non-global struct.
This part adds some support for parsing option values into such struct
instances, and moves one example option (fixed-vo) to the struct.
with different definitions set that activated either the lower or the upper
half of the header. The effectively simulated using two different header files.
It is more straightforward to split the header instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26392 b3059339-0415-0410-9bf9-f77b7e298cf2
In file included from mplayer.c:794:
cfg-mplayer.h:64: warning: redundant redeclaration of 'enqueue'
mplayer.c:230: warning: previous definition of 'enqueue' was here
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24832 b3059339-0415-0410-9bf9-f77b7e298cf2
cfg-mplayer.h:43: warning: redundant redeclaration of 'mDisplayName'
libvo/x11_common.h:30: warning: previous declaration of 'mDisplayName' was here
cfg-mplayer.h:46: warning: redundant redeclaration of 'vo_fstype_list'
libvo/x11_common.h:28: warning: previous declaration of 'vo_fstype_list' was here
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24393 b3059339-0415-0410-9bf9-f77b7e298cf2
cfg-mplayer.h:9: warning: redundant redeclaration of 'noconsolecontrols'
mplayer.c:191: warning: previous definition of 'noconsolecontrols' was here
cfg-mplayer.h:22: warning: redundant redeclaration of 'volstep'
mplayer.c:566: warning: previous definition of 'volstep' was here
cfg-mplayer.h:37: warning: redundant redeclaration of 'osd_level'
mplayer.c:235: warning: previous definition of 'osd_level' was here
cfg-mplayer.h:82: warning: redundant redeclaration of 'use_filedir_conf'
mplayer.c:370: warning: previous declaration of 'use_filedir_conf' was here
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24388 b3059339-0415-0410-9bf9-f77b7e298cf2
patch from Bernd Ernesti mplayer-dev-eng at lists dot veego dot de
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24208 b3059339-0415-0410-9bf9-f77b7e298cf2
Code is based on patch from Otvos Attila oattila at chello dot hu
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24125 b3059339-0415-0410-9bf9-f77b7e298cf2
"implicit declaration of function ‘mplayer_put_key’" warnings
Based on Attila's suggestions.
Approved by Uoti and Ivan.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22841 b3059339-0415-0410-9bf9-f77b7e298cf2
USE_OSD was hardcoded to true in configure, manually turning it off
would break compilation, and most OSD-related code wasn't affected by it
anyway so it did nothing useful.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21177 b3059339-0415-0410-9bf9-f77b7e298cf2