summaryrefslogtreecommitdiffstats
path: root/input
Commit message (Collapse)AuthorAgeFilesLines
* spelling cosmeticsdiego2007-09-291-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24663 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fixes:diego2007-09-131-2/+2
| | | | | | | | | | | | | | | | | input.c: In function 'mp_input_set_section': input.c:1640: warning: suggest parentheses around assignment used as truth value input.c:1643: warning: suggest parentheses around assignment used as truth value mga_common.c: In function 'mga_init': mga_common.c:394: warning: suggest parentheses around assignment used as truth value playtreeparser.c: In function 'parse_smil': playtreeparser.c:523: warning: suggest parentheses around assignment used as truth value libmpdemux/demux_ts.c: In function 'ts_parse': libmpdemux/demux_ts.c:2795: warning: suggest parentheses around assignment used as truth value libmpdemux/demux_ts.c: In function 'demux_open_ts': libmpdemux/demux_ts.c:591: warning: 'frame_length' may be used uninitialized in this function git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24444 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement X/27/0 packet decoding.voroshil2007-08-281-0/+1
| | | | | | | | | It contains information about navigation links. Modified patch from Otvos Attila oattila at chello dot hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24264 b3059339-0415-0410-9bf9-f77b7e298cf2
* Clean up the way get_path is handled: Compile get_path.c to an object to linkdiego2007-08-281-2/+1
| | | | | | | | against instead of directly #including the C file and replace the many extern declarations by a proper header file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24262 b3059339-0415-0410-9bf9-f77b7e298cf2
* Process any waiting commands (got_cmd set). Should fix e.g. smplayer.reimar2007-08-271-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24245 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert r24158, it is not necessary with unsigned bitfieldreimar2007-08-251-4/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24161 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change bitfield to unsigned so that we get the usual truth valuesreimar2007-08-251-6/+6
| | | | | | | (1 = true, 0 = false) instead of -1 for true. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24160 b3059339-0415-0410-9bf9-f77b7e298cf2
* Hack around broken bitfields in gcc 4.2reimar2007-08-251-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24158 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix invalid fd check, the bug is somewhere else though.reimar2007-08-251-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24157 b3059339-0415-0410-9bf9-f77b7e298cf2
* HACK: check added fds for validity because otherwise mplayerreimar2007-08-251-0/+12
| | | | | | | crashes due to using FD_SET on -1 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24156 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix loads of warningsreimar2007-08-251-6/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24155 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle queued commands from input event functions immediatelyuau2007-08-251-0/+6
| | | | | | | | | Check whether an event handler called mp_input_queue_cmd and return the command immediately if so. Currently x11_common.c creates commands from mouse position updates. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24154 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add separate event input type for terminal+vouau2007-08-252-2/+29
| | | | | | | | | | | Add an input/input.c fd type whose read function takes no arguments and returns no value. If such a function reads key or command events it'll add them to the queues itself. Use this type for terminal input which was special-cased before. The event function for X11-based VOs will use the same type later. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24152 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a single select() for both key and slave inputuau2007-08-251-195/+117
| | | | | | | | | | | | | | | Previous code used two separate select() calls one after another, so that whenever it was running select() on one set of fds events in the other set would go unnoticed until later. Now there's a single select() which allows reacting immediately to any input source. The behavior of the new code differs somewhat from the old; for example multiple fds that stay readable are no longer handled in a round-robin fashion and the total amount the process sleeps can differ. Some tuning might be required later. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24151 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make terminal input work more like VO key inputuau2007-08-251-4/+4
| | | | | | | | | | | | | | | | | The Unix version of getch2() could either return an internally buffered key or do a second-level select() in addition to the input.c one and then read more data. Change getch2() to always add all read keys with mplayer_put_key() (like video output window keyboard input does) and remove the internal select() from the Unix version. Make input.c call mplayer_get_key() directly. The primary motivation for this change is to make combining multiple event sources under one select() easier. Now getch2() only needs to be called when the corresponding fd is readable, and it will be possible to handle events from X-based VOs with the same code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24149 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused functionuau2007-08-251-18/+1
| | | | | | | | | The only case which does not override mp_input_default_key_func in mp_input_add_key_fd() is fd 0, but that is later special-cased not to use the input function at all. Remove the useless default function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24148 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use bitfield instead of manual bit fiddling in input.cuau2007-08-251-28/+25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24147 b3059339-0415-0410-9bf9-f77b7e298cf2
* Automatic TV channels scanning ability for MPlayer.voroshil2007-08-232-0/+2
| | | | | | | 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
* Clarify comment as pointed out by Ulion.diego2007-08-151-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24062 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: prettyprintdiego2007-08-141-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24058 b3059339-0415-0410-9bf9-f77b7e298cf2
* Apple Remote supportdiego2007-08-144-0/+551
| | | | | | | | patch by Zoltan Ponekker, pontscho kac.poliod hu cleaned up by Ulion, ulion2002 gmail com with some help by Reimar and me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24057 b3059339-0415-0410-9bf9-f77b7e298cf2
* Teletext support.voroshil2007-07-292-0/+10
| | | | | | | Part 2/5: options/slaves/configure/definitions/etc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23920 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a loop command and property.albeu2007-07-092-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23747 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add the sub_scale property and command.albeu2007-07-092-0/+2
| | | | | | | Patch from Anatoli Marinov (anatoli [dot] marinov [at] gmail [dot] com). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23745 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add comments to some preprocessor directives.diego2007-06-271-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23683 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert r23530.voroshil2007-06-212-12/+0
| | | | | | | | | r23530 breaks policy: notification was not sent to mailing list, agreements of other devs were not received. Code also should be reviewed/cleaned up/fixed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23593 b3059339-0415-0410-9bf9-f77b7e298cf2
* The audio balance feature implemented with af_pan.zuxy2007-06-202-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23588 b3059339-0415-0410-9bf9-f77b7e298cf2
* Teletext support for tv:// (v4l and v4l2 only)voroshil2007-06-102-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | modified patch from Otvos Attila oattila at chello dot hu Module uses zvbi library for all low-level VBI operations (like I/O with vbi device, converting vbi pages into usefull vbi_page stuctures, rendering them into RGB32 images). All teletext related stuff (except properties, slave commands and rendering osd in text mode or RGB32 rendered teletext pages in spu mode) is implemented in tvi_vbi.c New properties: teletext_page - switching between pages teletext_mode - switch between on/off/opaque/transparent modes teletext_format - (currently read-only) allows to get format info (black/white,gray,text) teletext_half_page - trivial zooming (displaying top/bottom half of teletext page) New slave commands: teletext_add_dec - user interface for jumping to any page by editing page number interactively teletext_go_link - goes though links, specified on current page git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23530 b3059339-0415-0410-9bf9-f77b7e298cf2
* implement "bind sections"voroshil2007-06-072-15/+97
| | | | | | | | | | | | | | | allows to bind one input key to several slave commands (independently for each section) as shown below: RIGHT seek +10 RIGHT {tv} tv_step_channel 1 RIGHT {dvdnav} dvdnav 4 Currenlty only "tv" section added. patch by Otvos Attila oattila at chello dot hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23497 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow setting the direction in the step_property command.albeu2007-05-311-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23430 b3059339-0415-0410-9bf9-f77b7e298cf2
* buggy joystick initialization, works much better without thisben2007-05-191-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23348 b3059339-0415-0410-9bf9-f77b7e298cf2
* Invert logic for HAVE_NO_POSIX_SELECT to HAVE_POSIX_SELECT to be in linediego2007-03-211-10/+10
| | | | | | | with the other HAVE_ #defines throughout the codebase. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22769 b3059339-0415-0410-9bf9-f77b7e298cf2
* New slave command: tv_step_freq <offset in MHz>voroshil2007-03-172-0/+2
| | | | | | | Command sets the TV frequency relative to current value git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22685 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Fix indentation, reorder some lines for consistency.diego2007-03-131-1/+0
| | | | 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-4/+4
| | | | | | | between common, MPlayer-specific and MEncoder-specific parts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22546 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow to add/modify keybind for '#'reimar2007-03-051-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22462 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove remnants of the nonfunctional "grab_frames" command.uau2007-02-192-2/+1
| | | | | | | The command has been a no-op for years. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22273 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add ignore key bindreimar2007-01-211-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21983 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove undocumented redundant key bindings.diego2006-12-241-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21759 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not call usec_sleep when we are not supposed to sleep.reimar2006-12-031-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21468 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify: 1 > 0 seems to be a rather safe assumption to make ;-)reimar2006-12-021-7/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21448 b3059339-0415-0410-9bf9-f77b7e298cf2
* FFmpeg-style dependency declarationdiego2006-11-271-6/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21325 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge common parts of all Makefiles into one file included by all.diego2006-11-261-28/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21275 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove superfluous comment.diego2006-11-251-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21222 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify dep/depend targets.diego2006-11-201-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21096 b3059339-0415-0410-9bf9-f77b7e298cf2
* new slave command: radio_step_freqvoroshil2006-11-192-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21058 b3059339-0415-0410-9bf9-f77b7e298cf2
* bind TAB to 'step_property switch_program'nicodvb2006-11-181-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21024 b3059339-0415-0410-9bf9-f77b7e298cf2
* Since vobsub_lang and sub_select do the same, 'b' and 'j' were boundreimar2006-11-171-2/+1
| | | | | | | to the same thing. Remove the binding for 'b'. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20993 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add deinterlace property, patch by Carl Eugen Hoyosreimar2006-11-171-0/+1
| | | | | | | | (cehoyos [at] rainbow studorg tuwien ac at) with small modifications by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20989 b3059339-0415-0410-9bf9-f77b7e298cf2
* associated _ to 'step_property switch_video'nicodvb2006-11-161-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20966 b3059339-0415-0410-9bf9-f77b7e298cf2
* Introduce step_property command.reimar2006-11-142-0/+2
| | | | | | | Patch by Carl Eugen Hoyos [cehoyos <at> ag or at] with modifications by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20931 b3059339-0415-0410-9bf9-f77b7e298cf2
* litle bug, didn't compile :(ptt2006-10-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20197 b3059339-0415-0410-9bf9-f77b7e298cf2
* slight overall verbosity reductiondiego2006-10-122-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20191 b3059339-0415-0410-9bf9-f77b7e298cf2
* introduced new MP_CMD_DVDNAV_MOUSECLICK command (bound to mouse0);nicodvb2006-09-192-1/+2
| | | | | | | | | | it's used to activate the button corresponding to the last mouse position. This is a workaround against possibly buggy implementation of upper_lower/upper_button_select() and friends; will be removed when possible git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19918 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed old dvdnav_event definitionsnicodvb2006-09-192-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19917 b3059339-0415-0410-9bf9-f77b7e298cf2
* when dvdnav is enabled associate MOUSE_BTN0 to dvdnav 6 (to simulate ↵nicodvb2006-09-161-0/+1
| | | | | | confirmation) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19858 b3059339-0415-0410-9bf9-f77b7e298cf2
* report to mplayer with a slave command the coordinates of the pointer ↵nicodvb2006-09-162-0/+2
| | | | | | reported by x11; rescale coordinates to [0,1]x[0,1] range - patch by Jonas Jermann and me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19856 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add repeated screenshot mode to vf_screenshot.eugeni2006-09-151-2/+3
| | | | | | | It is triggered by "screenshot 1". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19839 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move conditional compilation to the build system.diego2006-09-123-9/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19807 b3059339-0415-0410-9bf9-f77b7e298cf2
* permit to select previous dvdnav menu, in the order chapter->title->rootnicodvb2006-09-102-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19783 b3059339-0415-0410-9bf9-f77b7e298cf2
* reassigned to KEY_KP? the dvdnav bindings used in input.confnicodvb2006-09-091-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19782 b3059339-0415-0410-9bf9-f77b7e298cf2
* Radio support, patch by Vladimir Voroshilov (voroshil gmail com)reimar2006-08-282-0/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19574 b3059339-0415-0410-9bf9-f77b7e298cf2
* extended slave mode with metadata retrieval commandsben2006-08-262-0/+28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19539 b3059339-0415-0410-9bf9-f77b7e298cf2
* added new filter option to menu file browser to only display some files ↵ben2006-08-222-0/+2
| | | | | | according to extension git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19497 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move all internal -I parameters to the front of CFLAGS to avoid using externaldiego2006-08-171-1/+1
| | | | | | | | header files that happen to have the same name as internal ones. based on a patch by Vladislav Naumov, vladislav.naumov **at** gmail **dot** com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19426 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add matroska chapter seeking capability.eugeni2006-08-062-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19348 b3059339-0415-0410-9bf9-f77b7e298cf2
* marks several strings inside structs as const when they hold just reynaldo2006-07-161-1/+1
| | | | | | | | | read-only information and modifies GetLanguage in Gui/mplayer/gtk/menu.c to cope which the changes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19115 b3059339-0415-0410-9bf9-f77b7e298cf2
* OPTFLAGS already includes EXTRA_INC.diego2006-07-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19042 b3059339-0415-0410-9bf9-f77b7e298cf2
* get_path as const, patch by Stefan Huehner, stefan AT huehner-orgreynaldo2006-07-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18894 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 4reynaldo2006-07-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18890 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 2reynaldo2006-07-021-4/+4