summaryrefslogtreecommitdiffstats
path: root/libmenu
Commit message (Collapse)AuthorAgeFilesLines
* input: Move cmd_queue to context structUoti Urpala2008-04-309-16/+22
| | | | Menu instances now also need a input context pointer to queue commands.
* Move global filename to mpctxUoti Urpala2008-04-261-1/+0
|
* Move global mconfig to mpctxUoti Urpala2008-04-264-7/+14
| | | | | | | | | | | 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.
* Remove _s/_st suffix from some struct namesUoti Urpala2008-04-251-6/+6
| | | | | Since the names are always used after the keyword "struct" having a suffix as in "struct demuxer_st" is almost completely pointless.
* Add new video driver APIUoti Urpala2008-04-231-2/+2
| | | | | | | | | | | | | Create new video driver API that has a per-instance context structure and does not rely on keeping status in global or static variables. Existing drivers are not yet converted to this API; instead there is a wrapper which translates calls to them. In the new API, an old API call vo_functions->xyz(args) is generally replaced by vo_xyz(vo_instance, args). The changes to keep the vesa, dxr2 and xover drivers compiling have not been tested.
* Build all parts in the libmenu subdirectory nonrecursively.diego2008-04-071-18/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26343 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing header #includes to fix 'make checkheaders'.diego2008-03-052-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26171 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add MPLAYER_ prefix to multiple inclusion guards.diego2008-02-222-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26061 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless #ifdefs around extern declarations.diego2008-02-201-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26039 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow independent scaling of vo_font and sub_font.reimar2008-01-271-1/+1
| | | | | | | Patch by Guillaume LECERF (foxcore gmail com). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25879 b3059339-0415-0410-9bf9-f77b7e298cf2
* Deny the code using realpath().ulion2008-01-101-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25660 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add multiple inclusion guards to all header files that lack them.diego2008-01-012-1/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25581 b3059339-0415-0410-9bf9-f77b7e298cf2
* Default use the dir where the current playing file located if path not set.ulion2007-12-311-2/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25556 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant option 'auto-close' from cmdlist and filesel.ulion2007-12-282-17/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25533 b3059339-0415-0410-9bf9-f77b7e298cf2
* From now on, libmenu does not steal all input keys from input modules.ulion2007-12-266-19/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25530 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use '-' instead of '_' in option name.ulion2007-12-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25527 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless scope.ulion2007-12-251-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25526 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify the condition code.ulion2007-12-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25524 b3059339-0415-0410-9bf9-f77b7e298cf2
* OSD menu support mouse selection.ulion2007-12-224-0/+61
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25489 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add variable bx, dx to simplify code of function menu_draw_list.ulion2007-12-201-7/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25466 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add local variable 'line_h' to simplify code of function menu_list_draw.ulion2007-12-201-8/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25465 b3059339-0415-0410-9bf9-f77b7e298cf2
* Currently menu title did not align center together with menu items when x>=0.ulion2007-12-191-3/+3
| | | | | | | 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
* Calculate and draw osd accurately.ulion2007-12-191-2/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25462 b3059339-0415-0410-9bf9-f77b7e298cf2
* Here should add the minb to x when x>=0 because in later codeulion2007-12-181-1/+1
| | | | | | | 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
* Fix the menu uninit function name.ulion2007-12-182-2/+2
| | | | | | | 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
* Replace another m_struct_t by 'struct m_struct_st' to remove depedencyulion2007-12-181-1/+1
| | | | | | | on m_struct.h when include libmenu/menu.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25447 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove dependency on m_struct.h when include libmenu/menu.h.ulion2007-12-181-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25445 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix indent for last commit.ulion2007-12-171-15/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25437 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ignore elements of keybindings other than 'binding'.ulion2007-12-171-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25436 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove NO_REPEAT mask from keycode, fix keycode matching for JOY_BTN0, etc.ulion2007-12-171-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25435 b3059339-0415-0410-9bf9-f77b7e298cf2
* Display parsed keycode in verbose output.ulion2007-12-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25434 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memory leak.ulion2007-12-171-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25429 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add auto-update property for property menu item.ulion2007-12-151-9/+25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25409 b3059339-0415-0410-9bf9-f77b7e298cf2
* get rid of the file-static dvb_config and free the config at close() . ↵nicodvb2007-12-151-0/+1
| | | | | | Patch by Andrew Calkin and me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25407 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support chapter in OSD menu.ulion2007-12-143-0/+186
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25392 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: partially reformatted this monstruositynicodvb2007-12-121-33/+31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25384 b3059339-0415-0410-9bf9-f77b7e298cf2
* reverted r25323: deprecated by ulion's recent patchesben2007-12-121-8/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25382 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memory leak. I thought asx_get_attrib() return a const char *,ulion2007-12-121-5/+9
| | | | | | | but indeed it return string by strdup. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25375 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memory leak, reported by Andrew Calkin <andrew P calkin A gmail P com>.ulion2007-12-121-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25374 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove headers not used.ulion2007-12-121-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25373 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support to run multiple mplayer commands set in menu.confulion2007-12-113-19/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25348 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix mylstat() call to parent dir where the subdir has no exec permission.ulion2007-12-101-1/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25339 b3059339-0415-0410-9bf9-f77b7e298cf2
* Combine common code for dealing with file action and dir action.ulion2007-12-091-17/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25328 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use recorded last path only when stat it ok.ulion2007-12-091-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25327 b3059339-0415-0410-9bf9-f77b7e298cf2
* identifiers starting with an underscore are reserved by the C standardben2007-12-081-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25325 b3059339-0415-0410-9bf9-f77b7e298cf2
* rework of libmenu open_dir()ben2007-12-081-2/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25323 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove hardcoded key->cmd bindings in libmenu, support custom key bindingsulion2007-12-0411-119/+172
| | | | | | | by menu config file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25291 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark several uses of vo_functions_t as const to stop some of the currentreimar2007-12-021-1/+1
| | | | | | | hacks e.g. in vidix code from spreading. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25247 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add type info to menu_t, now we can get the menu name and the type name of menu.ulion2007-12-022-2/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25236 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix code to make sure the browse starting path within the menu-chroot path.ulion2007-11-261-16/+26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25162 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove the pause filter and the cmd queue hack, to know the mplayer going toulion2007-11-151-29/+10
| | | | | | | | pause by checking mpctx directly. If there's any video update before the pause then capture the frame or fallback to use last captured frame as pausing frame. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25054 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make page up and down with proper page size instead of always 10 rows.ulion2007-11-102-12/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25007 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix pause key problem in correct way, only handle pause cmd when showing menu.ulion2007-11-081-7/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24988 b3059339-0415-0410-9bf9-f77b7e298cf2
* Warning fixes:ulion2007-11-051-8/+8
| | | | | | | | | | | | | | | menu.c:303: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type menu.c:370: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type menu.c:463: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type menu.c:537: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type menu.c:565: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type menu.c:577: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type menu.c:597: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type menu.c:612: warning: passing argument 1 of 'utf8_get_char' from incompatible pointer type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24968 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix link to email explaining the paused vf_menu behaviour changereimar2007-11-031-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24957 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move alloc_mpi and copy_mpi from libmenu/vf_menu.c to libmpcodecs/mp_image.c.cehoyos2007-08-041-54/+0
| | | | | | | Patch by Attila Ötvös. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24014 b3059339-0415-0410-9bf9-f77b7e298cf2
* Give message string a more meaningful name.diego2007-07-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23894 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fix: childs --> childrendiego2007-07-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23891 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not use fast_memcpy for small size copy, esp. when the size is constantreimar2007-06-051-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23476 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace implicit use of fast_memcpy via macro by explicit use to allowreimar2007-06-051-2/+2
| | | | | | | for future optimization. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23475 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop the metadata stuff and replace it with generic property string expansion.albeu2007-05-301-77/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23416 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rework the property API to allow sub properties such asalbeu2007-05-291-10/+10
| | | | | | | metadata/title, etc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23411 b3059339-0415-0410-9bf9-f77b7e298cf2
* new -menu-chroot option that prevent OSD file selection menu to go to an ↵ben2007-05-291-0/+7
| | | | | | unwanted location (yeah, chroot ;-)) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23409 b3059339-0415-0410-9bf9-f77b7e298cf2
* allow left key command to close text menus tooben2007-05-251-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23385 b3059339-0415-0410-9bf9-f77b7e298cf2
* rename some menu open functions, to avoid confusion with libc native open()ben2007-05-253-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23384 b3059339-0415-0410-9bf9-f77b7e298cf2
* add new -subfont option, that allows having a different font for OSD ↵ben2007-05-201-1/+2
| | | | | | (controls and menu) and subtitles git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23356 b3059339-0415-0410-9bf9-f77b7e298cf2
* get rid of -menu-utf8 and -menu-unicode once for all, patch by Guillaume Lecerfben2007-05-201-30/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23355 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix libmenu compilation with fridibi enabledben2007-05-071-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23256 b3059339-0415-0410-9bf9-f77b7e298cf2
* cast to what's really expectedben2007-05-071-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23255 b3059339-0415-0410-9bf9-f77b7e298cf2
* use already existing function to get utf8 char in libmenu (thx to reimar)ben2007-05-071-8/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23250 b3059339-0415-0410-9bf9-f77b7e298cf2
* used FFMAX macro as pointed out by reimarben2007-05-071-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23249 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed useless casts as pointed out by reimarben2007-05-071-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23248 b3059339-0415-0410-9bf9-f77b7e298cf2
* new -menu-keepdir option that allows libmenu file browser to always restart ↵ben2007-05-071-1/+41
| | | | | | 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
* support for hebrew through fribidi in libmenu (geexbox patch #580)ben2007-05-071-0/+56
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23246 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for unicode/utf8 in libmenu (geexbox patch #545)ben2007-05-071-13/+36
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23245 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Fix indentation, reorder some lines for consistency.diego2007-03-131-9/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22549 b3059339-0415-0410-9bf9-f77b7e298cf2
* Give more descriptive names to the source and library variables and splitdiego2007-03-131-3/+3
| | | | | | | between common, MPlayer-specific and MEncoder-specific parts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22546 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix menu to work with mpctxuau2007-02-215-12/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22302 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix identation, broken by last commitgpoirier2007-01-161-12/+12
| | | |