Commit Graph

179 Commits

Author SHA1 Message Date
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
ulion 914c5bb994 Display parsed keycode in verbose output.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25434 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-17 14:53:38 +00:00
ulion 1dc9f8ea08 Fix memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25429 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-17 01:20:19 +00:00
ulion f30650e3b5 Add auto-update property for property menu item.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25409 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 15:32:27 +00:00
nicodvb a9d2f4db42 get rid of the file-static dvb_config and free the config at close() . Patch by Andrew Calkin and me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25407 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 13:30:44 +00:00
ulion e9c921bbe1 Support chapter in OSD menu.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25392 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-14 08:39:45 +00:00
nicodvb 0b162b1a83 cosmetics: partially reformatted this monstruosity
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25384 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 23:01:49 +00:00
ben b79af69ae4 reverted r25323: deprecated by ulion's recent patches
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25382 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 19:26:55 +00:00