diego
637dd3d064
Mark cfg_fields m_option_t array as const.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30999 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-04 16:11:20 +00:00
diego
b63759b175
Do not cast the results of malloc/calloc/realloc.
...
These functions return void*, which is compatible with any pointer,
so there is no need for casts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30744 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-26 15:01:37 +00:00
diego
e0bc115b4d
cosmetics: Rename struct vf_instance_s --> vf_instance.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30684 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-21 15:48:03 +00:00
diego
8ba6b4eaf9
cosmetics: Remove pointless empty lines at EOF.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30675 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 21:02:49 +00:00
komh
316e05b877
Replace platform preprocessor check by HAVE_DOS_PATHS.
...
This is both more elegant and more portable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30650 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-19 09:14:01 +00:00
diego
93c1e23c47
Mark some more functions that are not used outside of their files as static.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30632 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-18 09:26:00 +00:00
diego
782c37899b
Declare vf_menu_pause_update in libmenu/menu.h.
...
This avoids a forward declaration in mplayer.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30582 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 14:54:48 +00:00
diego
6e9cbdc104
whitespace cosmetics: Remove all trailing whitespace.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-13 02:58:57 +00:00
diego
2e903f7c75
Remove unnecessary malloc.h #includes and related #ifdeffery.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29126 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-02 09:20:48 +00:00
diego
be8c67909b
Convert HAVE_MALLOC_H into a 0/1 definition, fixes the warning:
...
mem.c:32:5: warning: "HAVE_MALLOC_H" is not defined
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28629 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-17 11:16:19 +00:00
diego
ea6c00a4b6
Add standard GPL headers.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28147 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-13 18:40:19 +00:00
diego
2093097cfb
Remove pointless attribute_used from variable declaration.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27780 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-16 18:08:18 +00:00
diego
091d352d06
Rename font-related preprocessor directives.
...
Switch them from a HAVE_ to a CONFIG_ prefix.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27425 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-07 10:36:07 +00:00
diego
02135001b4
Change a bunch of video/audio-output-specific preprocessor directives from
...
a HAVE_ prefix to a CONFIG_ prefix.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27402 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-03 15:21:40 +00:00
diego
d17f9943af
Rename some preprocessor directives from CONFIG_* to HAVE_* where appropriate;
...
CONFIG_ prefix for configurable options, HAVE_ for system-dependent stuff.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27391 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-01 20:28:58 +00:00
diego
4b141479da
Start unifying names of internal preprocessor directives.
...
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-30 12:01:30 +00:00
ben
9e0e5b028c
fixes two bugs:
...
1. doesn't add \ before spaces when showing dirname in interface title.
2. when replace_path() string is to be parsed by input command,
I assume that the path is to be run in shell,
and I do special escaping of 'into \'\\\'\'
(tested useful and ok with geexbox for last 3 years ...)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27118 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-20 20:36:05 +00:00
ben
6f70e50e6d
Add auto-close option to libmenu playlist handling part.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27104 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-20 19:43:19 +00:00
ben
a3e6050aa1
Removed unused freepath variable.
...
Patch by Guillaume Lecerf <foxcore at gmail com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27002 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-06 23:24:39 +00:00
ben
45509b2576
Remove useless braces on if() statement.
...
Patch by Guillaume Lecerf <foxcore at gmail com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26993 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-05 19:47:04 +00:00
ben
8d4cdcc158
Ensure 'path' string is 0 terminated.
...
Patch by Guillaume Lecerf <foxcore at gmail com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26992 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-05 19:46:16 +00:00
diego
15525ae9aa
Use size_t instead of int for a variable that is compared to the result
...
of strlen. Fixes a warning about signed and unsigned comparison.
patch by Guillaume LECERF, foxcore gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26977 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-03 22:35:02 +00:00
diego
5423c418c2
cosmetics: Remove useless parentheses from return statements.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26791 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-16 09:42:28 +00:00
diego
b10c35e0ed
Use standard license headers with standard formatting.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26775 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-14 18:02:27 +00:00
diego
7d560418f6
Remove unnecessary version.h #includes.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26602 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-30 11:03:41 +00:00
diego
f827599b48
Build all parts in the libmenu subdirectory nonrecursively.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26343 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-07 08:28:54 +00:00
diego
55e29f6103
Add missing header #includes to fix 'make checkheaders'.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26171 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-05 08:24:59 +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
diego
77eb726c3d
Remove pointless #ifdefs around extern declarations.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26039 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-20 08:51:53 +00:00
reimar
fbae3928cd
Allow independent scaling of vo_font and sub_font.
...
Patch by Guillaume LECERF (foxcore gmail com).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25879 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-27 15:14:02 +00:00
ulion
73f51e7f78
Deny the code using realpath().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25660 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 12:44:17 +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
61f55e9fd7
Default use the dir where the current playing file located if path not set.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25556 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-31 01:20:50 +00:00
ulion
1fbd5fb5f4
Remove redundant option 'auto-close' from cmdlist and filesel.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25533 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-28 03:45:01 +00:00
ulion
b6870cc5ba
From now on, libmenu does not steal all input keys from input modules.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25530 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-26 13:13:48 +00:00
ulion
967aaee5e2
Use '-' instead of '_' in option name.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25527 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-25 09:01:51 +00:00
ulion
76f10103ba
Remove useless scope.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25526 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-25 08:38:09 +00:00
ulion
c8a8ffcf36
Simplify the condition code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25524 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-25 04:30:16 +00:00
ulion
673246be0c
OSD menu support mouse selection.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25489 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-22 06:14:38 +00:00
ulion
787801f7a5
Add variable bx, dx to simplify code of function menu_draw_list.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25466 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 07:11:48 +00:00
ulion
bfe3186801
Add local variable 'line_h' to simplify code of function menu_list_draw.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25465 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 02:17:29 +00:00
ulion
d7ed78143c
Currently menu title did not align center together with menu items when x>=0.
...
Now fix it to get a good alignment with menu items.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25463 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-19 15:21:27 +00:00
ulion
5fdfc9124d
Calculate and draw osd accurately.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25462 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-19 09:34:28 +00:00
ulion
007988abf8
Here should add the minb to x when x>=0 because in later code
...
we use 'x - minb' to draw bg box when x>=0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25449 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-18 11:54:17 +00:00
ulion
cccac8fa2a
Fix the menu uninit function name.
...
NOTE: Nobody call this function by now, should be fixed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25448 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-18 10:45:43 +00:00
ulion
fea0ba733f
Replace another m_struct_t by 'struct m_struct_st' to remove depedency
...
on m_struct.h when include libmenu/menu.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25447 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-18 09:44:54 +00:00
ulion
1f3ab9672a
Remove dependency on m_struct.h when include libmenu/menu.h.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25445 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-18 04:07:48 +00:00
ulion
ab7d5a37ad
Fix indent for last commit.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25437 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-17 15:01:14 +00:00
ulion
2f0d486430
Ignore elements of keybindings other than 'binding'.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25436 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-17 14:58:46 +00:00
ulion
5ff065269c
Remove NO_REPEAT mask from keycode, fix keycode matching for JOY_BTN0, etc.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25435 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-17 14:55:45 +00:00