0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
Commit Graph

321 Commits

Author SHA1 Message Date
Uoti Urpala
b14909a955 Move opt_screen_size_[x|y] to options struct 2008-04-25 03:34:27 +03:00
Uoti Urpala
0dc3a72273 Move vidmode to options struct 2008-04-25 03:34:27 +03:00
Uoti Urpala
41d6879236 Move fullscreen to options struct 2008-04-25 03:34:27 +03:00
Uoti Urpala
f8934a5f12 Modify option helper macros
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".
2008-04-24 02:41:29 +03:00
Uoti Urpala
c2a36d9264 Move option helper #defines to cfg-common.h for now 2008-04-23 13:48:37 +03:00
Uoti Urpala
ef74d21b1f Move loop_times to option struct 2008-04-23 13:47:44 +03:00
Uoti Urpala
78172918ff Move vo_screenwidth,vo_screenheight to options struct 2008-04-23 13:46:40 +03:00
Uoti Urpala
ce76dfdd4a Move vo_dbpp to options struct 2008-04-23 13:46:40 +03:00
Uoti Urpala
bfe569b76e Move vo_ontop to options struct
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.
2008-04-23 13:41:06 +03:00
Uoti Urpala
9b06b5ed85 Move correct_pts to options struct 2008-04-23 13:41:05 +03:00
Uoti Urpala
732ee3474a Move options "vo" and "ao" to common struct 2008-04-23 13:41:05 +03:00
Uoti Urpala
9db0c118d3 Start of new option system
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.
2008-04-23 13:41:05 +03:00
diego
4bec934234 Split cfg-common.h into two separate header files. It was being included twice
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
2008-04-11 09:48:36 +00:00
diego
3cd1f73f70 Add comments to #endif preprocessor directives.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26158 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-04 19:34:56 +00:00
diego
8efb2fa21c Add MPLAYER_ prefix to multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26061 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-22 09:09:46 +00:00
reimar
40dca58f37 Allow demuxers to choose a default value for correct_pts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25951 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-03 12:14:29 +00:00
diego
7b83b07bea typo fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25772 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-16 09:30:28 +00:00
reimar
c3d4f52d7c Add heartbeat-cmd option
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25639 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-07 12:30:15 +00:00
diego
2b6af2000b Add multiple inclusion guards to all header files that lack them.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25581 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 21:35:58 +00:00
ulion
df0f80508e Support using unrar executable to access rar-compressed vobsub files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25389 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-14 08:16:39 +00:00
reimar
37235a01d9 Make the main m_option_t arrays const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25261 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 16:45:34 +00:00
reimar
1bf629e38e Move fakemono extern to cfg-common.h where it is actually used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25259 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 16:10:56 +00:00
reimar
54016c6776 Remove pointless ifdefs around extern declarations
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25258 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 16:08:07 +00:00
diego
27d76cfaab Fix warning:
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
2007-10-21 22:31:22 +00:00
voroshil
ae9775bd1d Fix warnings:
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
2007-09-10 01:10:59 +00:00
voroshil
e02230854c Fix warnings:
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
2007-09-10 01:07:21 +00:00
voroshil
848fa26ffa Fix redundant declaration warnings for variables already defined
in libvo/video_out.h



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24385 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-09 15:05:33 +00:00
diego
4e7f09313d Add comments to some #endif preprocessor directives.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24383 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-09 13:41:45 +00:00
voroshil
ac6d51f005 Suboptions structure should be passed as array not as address of array.
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
2007-08-26 12:12:02 +00:00
voroshil
f1fbca4bdd Automatic TV channels scanning ability for MPlayer.
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
2007-08-23 16:09:30 +00:00
reimar
7c047631b1 Experimental negative panscan values
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23897 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-28 22:46:10 +00:00
reimar
e94b93b2c4 Use a new variable for user-supplied monitor-aspect so we can overwrite
a value generated from pixel-aspect if resolution changes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23896 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-28 22:42:20 +00:00
albeu
f48a4beff0 Move loop_times into mpctx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23746 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-09 14:51:47 +00:00
reimar
0ff97c28e3 Fix config declarations so that things like rtc=no work in addition to nortc=yes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23507 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-08 07:49:03 +00:00
ben
c31274e8b4 new -menu-chroot option that prevent OSD file selection menu to go to an unwanted location (yeah, chroot ;-))
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23409 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-29 18:49:38 +00:00
ben
b0615f0024 get rid of -menu-utf8 and -menu-unicode once for all, patch by Guillaume Lecerf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23355 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-20 15:17:56 +00:00
ben
db48d5baff new -menu-keepdir option that allows libmenu file browser to always restart browsing from the last place we were instead of current dir
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23247 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-07 16:46:24 +00:00
ben
0e71ae2f5f support for hebrew through fribidi in libmenu (geexbox patch #580)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23246 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-07 15:59:53 +00:00
ben
7796893de0 support for unicode/utf8 in libmenu (geexbox patch #545)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23245 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-07 15:55:58 +00:00
cehoyos
a2dda036d8 Make -monitorpixelaspect 1 the default.
Patch by Onur Küçük <onur.--.-.delipenguen.net>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23154 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-27 23:16:45 +00:00
rathann
259cfbe7e2 Code cleanup: don't include a .c file in mplayer.c and fix a few
"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
2007-03-29 17:16:11 +00:00
reimar
74b70845a4 nomouseinput option should not depend on HAVE_X11.
Patch by Zuxy Meng (zuxy meng at gmail com)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22442 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-04 13:26:43 +00:00
reimar
b5f54a914d Apply ancient double-click patch that nobody cares to comment on.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21959 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-18 19:30:02 +00:00
diego
533eaf50e3 Remove misleading comment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21869 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-10 16:58:42 +00:00
uau
544233bded Make compilation depending on USE_OSD unconditional.
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
2006-11-22 19:21:16 +00:00
diego
2d8010498d Clarify messages for unavailable options.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20917 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-14 11:14:03 +00:00
diego
8f5f581668 typo/grammar
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20836 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-10 16:39:44 +00:00
reimar
0f281eb8d9 100l, forgotten "no" for nouse-filedir-conf caused "-use-filedir-conf"
option to have no effect.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20470 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-27 19:19:40 +00:00
rtogni
c844ece6d4 Disable loading of file-specific configuration file from the same
directory as the played file. Add a command-line switch to enable it.
Patch by reimar, manpage patch by me


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20257 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-15 21:27:15 +00:00
diego
d95fb6c38d Remove senseless DIRECTFBVERSION check, we require 0.9.13+ anyway.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20215 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-14 17:54:08 +00:00