1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 13:32:16 +00:00
Commit Graph

24330 Commits

Author SHA1 Message Date
uau
c51c1fc668 Make terminal input work more like VO key input
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
2007-08-25 04:28:08 +00:00
uau
dcd9ee6d5a Remove unused function
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
2007-08-25 04:28:06 +00:00
uau
42b90fa1c3 Use bitfield instead of manual bit fiddling in input.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24147 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 04:28:04 +00:00
diego
96db94aad3 Remove redundant variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24146 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 00:30:28 +00:00
diego
ed6463333f Fix unused variable warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24145 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 00:23:38 +00:00
reimar
4e19d8fe2f Add missing pixelformat conversion function prototype
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24144 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 20:59:55 +00:00
diego
64681afa04 Move Apple gcc AltiVec vector declaration syntax to libavutil.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24143 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 15:04:14 +00:00
diego
835443cdfe Add -mstackrealign to CFLAGS on Darwin, fixes loading WMV9 DLL.
patch by Ulion, ulion2002 gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24142 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 12:49:59 +00:00
diego
c1999c5661 Remove redundant extern variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24141 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 12:45:26 +00:00
diego
54c3a567e3 Fix unused variable warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24140 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 11:18:07 +00:00
diego
9fdcecc029 Remove unused variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24139 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 11:16:32 +00:00
diego
4225bf59d4 Remove silly #ifdef around the complete file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24138 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 11:06:07 +00:00
diego
a89c347ea4 misc markup fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24137 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 10:50:29 +00:00
diego
65ce98ce92 Wording and markup improvements for the -tvscan option.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24136 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 10:40:57 +00:00
diego
c642c9373e Leading underscores in identifiers are forbidden.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24135 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 09:28:44 +00:00
diego
437895cc46 Remove fallback round implementation that is protected by a preprocessor
directive that configure never sets or checks for.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24134 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 09:23:06 +00:00
diego
b4109f4efe Remove unused extern variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24133 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 09:15:21 +00:00
diego
e98f88e00e Remove redundant variable declaration along with the corresponding warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24132 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 09:14:41 +00:00
diego
5c2b08d2d8 1000l: Revert stray hunk that crept in with last commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24131 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 09:12:00 +00:00
diego
38623fee68 Use consistent include path.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24130 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 00:11:15 +00:00
cehoyos
4f33b7daed Removed uninitialized variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24129 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 23:14:00 +00:00
reimar
b7ce6217d6 Use new request_channels
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24128 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 20:29:57 +00:00
diego
cb9b67ff7f 100l typo: ENTER --> KPENTER
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24127 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 17:45:54 +00:00
diego
1c5252045e Fix KPENTER keycode value on Mac OS X.
patch by Ulion, ulion2002 gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24126 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 17:16:48 +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
voroshil
ffac6ce7eb Fix blue color for yv12 and i420 image formats in "automute" screen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24124 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 14:20:31 +00:00
cehoyos
374de7f61f Fix compilation of live555 support after FFmpegs r10173.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24123 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 23:37:06 +00:00
diego
783cfdad11 CONFIG_DARWIN was removed from FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24122 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 22:51:03 +00:00
diego
f7176daf51 Rename CONFIG_DARWIN to SYS_DARWIN, it is not configurable (in FFmpeg).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24121 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 22:46:55 +00:00
reimar
1bb8c20fc7 Finally fix --enable-debug compilation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24120 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 17:10:31 +00:00
voroshil
65e0b2a95e Fix [soc:eoc] stubs.
Slightly modified patch from Otvos Attila oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24119 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 14:01:57 +00:00
voroshil
ff4232804d r24050: MP3 audio encoder was renamed to libmp3lame in FFmpeg.
r24055: Document how to encode with some libavcodec audio codecs.
r24056: AC3 --> AC-3
r24063: Document how to encode with some more libavcodec audio codecs.
r24084: small libavcodec audio codec clarifications
r24109: Sort libavcodec encoders.
r24110: Add some missing libavcodec video encoders.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24118 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 10:24:37 +00:00
voroshil
3c2eee7e0e r24030: Document special A-V sync issues with FLV files
r24035: Add <application> tag around MEncoder
r24045: Change "object type complexity" parameter of FAAC in the
r24056: AC3 --> AC-3
r24082: Explicitly mention the need to rebuild MPlayer after installing AMR libs.
r24087: Reorder installation requirements list, wording/spelling.
r24089: Complete the list of libavcodec audio encoders.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24117 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 09:56:42 +00:00
voroshil
c76ff494bf sync tag update
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24116 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 09:05:59 +00:00
diego
0816147935 Remove Windows-only replacement gettimeofday() implementation, both Cygwin
and MinGW have gettimeofday() in recent versions.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24115 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-21 17:12:30 +00:00
reimar
f12a0e61cc Set DVD speed earlier to avoid drive spinup during open
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24114 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-21 12:38:45 +00:00
Gabrov
dda3eb4d1f synced with r24110
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24113 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-21 07:27:05 +00:00
uau
6a4478d677 Remove unnecessary OSD visibility code
Don't set osd_visible directly in seek code. It's usually set to the
same value by set_osd_bar() already. In the cases where set_osd_bar()
is not called or doesn't set it (seek is triggered by EDL or loop, or
there is no video output) it seems to make no difference.

This fixes a minor bug: if you set OSD level to disabled while the
progress bar was visible then doing seeks before it disappeared would
keep it visible but not change its value.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24112 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-21 00:24:14 +00:00
uau
e833080245 Minor code cleanup
Move timed hiding of OSD progress bar to the same place where OSD
messages are timed out.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24111 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-21 00:24:13 +00:00
diego
2133d125e2 Add some missing libavcodec video encoders.
based on a patch by A C Hurst, A.Hurst sheffield.ac uk


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24110 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 23:04:10 +00:00
diego
81d08ccf3e Sort libavcodec encoders.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24109 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 23:00:25 +00:00
nicodvb
af4c7a3fd8 reimplemented nav_read_PCI() and nav_read_DSI() using getbits() rather than relying on bitfields layout in memory
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24108 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 21:27:44 +00:00
reimar
b284631167 Runtime-patching for windows to fix crash with drv43260.dll
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24107 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 16:17:13 +00:00
iive
78dbd8ba26 remove gconvert_uri_to_filename() and use url_unescape_string() instead.
reasons:
* gconvert strdup()s the original string, but it may exit without returning or freeing it.
* gconvert returns the original pointer when no % escaping is done. It is then free()ed and used in that state.
* gconvert doesn't consider that % may be at the end of the string and could continue parsing past the end.
* gconvert would try to free() pointer that iconv() have modified.
* gconvert would try to convert filenames from utf-8 to iso8859-1. 
  Seems like no other DnD programs convert to utf-8 and/or honors CHARSET.
  Not converting seems to work best. Fix it if problem arises.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24106 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 14:17:43 +00:00
reimar
80ef41dccf We can support SEEK_END seeks only when stream->end_pos is known
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24105 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 09:28:44 +00:00
reimar
08dd16470b Add support for AVSEEK_SIZE in demux_lavf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24104 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 09:27:47 +00:00
reimar
84a215de32 -subfps makes sense for frame-based subtitle formats as well!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24103 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 09:26:29 +00:00
reimar
afe879eb99 Do not seek to an invalid position.
Patch by {emild [at] cs technion ac il}


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24102 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-19 21:22:27 +00:00
nicodvb
0f6e7bd095 added from dvdnav's dvdread getbits() code to be used in forthcoming patch to read correctly NAV data
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24101 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-19 20:53:43 +00:00
reimar
d130a78de5 Replace dvdread bswap.h by something more sane for us.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24100 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-19 09:07:56 +00:00