summaryrefslogtreecommitdiffstats
path: root/cfg-common-opts.h
Commit message (Collapse)AuthorAgeFilesLines
* Silence "discards qualifiers" warnings when compiling mplayer.cUoti Urpala2008-04-261-11/+11
| | | | | | | | | | 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.
* Move global mconfig to mpctxUoti Urpala2008-04-261-1/+0
| | | | | | | | | | | The global was used in the function cfg_include which handles the -include option. Make the address available in that function by creating a new dynamically allocated option in m_config_new that has the address in the option's private data. asxparser.c also used the global. Making it available through all ways the code could get called required a number of relatively straightforward changes to playtree and menu code.
* Move vf_settings to options structUoti Urpala2008-04-261-1/+1
|
* Move vd_use_slices to options structUoti Urpala2008-04-251-2/+2
|
* Move movie_aspect to options structUoti Urpala2008-04-251-2/+2
|
* Move screen_size_xy to options structUoti Urpala2008-04-251-1/+1
|
* Move flip and softzoom to options structUoti Urpala2008-04-251-4/+4
|
* Modify option helper macrosUoti Urpala2008-04-241-7/+7
| | | | | | | 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".
* Move dvdsub_id to options structUoti Urpala2008-04-231-1/+1
| | | | | | | Name the field "sub_id" as it's not specific to DVD subs. Remove some other unused extern declarations together with dvdsub_id from demux_mkv.c and demux_lavf.c.
* Move audio_id and video_id to options structUoti Urpala2008-04-231-5/+5
|
* Move playback_speed to options structUoti Urpala2008-04-231-1/+1
|
* cfg-common-opts.h: Remove multiple inclusion guards and #includeUoti Urpala2008-04-231-7/+0
| | | | | | | This file cannot be used as a normal header so the multiple inclusion guards are pointless, and the only reason the '#include "config.h"' did not break compilation was that it compiled to whitespace only due to its own multiple inclusion guard.
* Add options to disable some or all config files.albeu2008-04-141-0/+1
| | | | | | | Patch by Andrew Savchenko (Bircoph -at- list -dot- ru). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26448 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace the trivial command line preparser with a more robust versionalbeu2008-04-131-1/+1
| | | | | | | allowing all kind of options to be used. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26440 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable runtime control for colorful and/or module name outputzuxy2008-04-121-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26402 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split cfg-common.h into two separate header files. It was being included twicediego2008-04-111-0/+342
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