Commit Graph

25667 Commits

Author SHA1 Message Date
reimar d100c41da0 Cosmetics: get rid of huge amounts of trailing whitespace
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25694 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 15:01:05 +00:00
reimar 574edcc737 Remove an unused global variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25693 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 14:58:39 +00:00
reimar e15487b068 Avoid uselessly global variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25692 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 14:56:11 +00:00
reimar b780832765 100l, free strdup'd strings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25691 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 14:48:12 +00:00
reimar 2f77f19cb8 Builtin codecs array can now be const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25690 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 14:07:27 +00:00
reimar d63fb8ba99 Replace the persistent CODECS_FLAG_SELECTED by a local "stringset" with
an almost-trivial implementation.
This allows making the builtin codec structs const, and it also makes
clearer that this "selected" status is not used outside the init functions.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25689 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 14:05:46 +00:00
eugeni eb96cc741e Do not try to guess font metrics based on its bounding box.
It was originally a workaround for fonts with bad ascender/descender values,
but it breaks display of some otherwise valid fonts (bugzilla 987), so
reverted.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25688 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 02:27:01 +00:00
eugeni 46c4f6ae9f Add libass support to demux_lavf.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25687 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 01:14:45 +00:00
eugeni 55b1facb6c Instead of keeping attachments in mkv demuxer, use demuxer_add_attachment().
These attachments are passed to libass after demuxer is opened.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25686 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 01:12:39 +00:00
eugeni c0e1f353e0 Add demuxer interface for attachments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25685 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 01:12:36 +00:00
eugeni 0d36212f39 Remove global_ass_track. Instead create an ass_track for each 't' track.
Global_ass_track obviously can not work when there is more than one 't tracks,
their lines will be mixed up.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25684 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 21:45:20 +00:00
eugeni bdb6a07d2a Move all subtitle parsing from mkv demuxer to update_subtitles().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25683 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 21:45:17 +00:00
eugeni d9d27bb8c4 Init and destroy ass_tracks in demuxer.c based on sh_sub->type value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25682 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 21:45:15 +00:00
eugeni 2d0715a915 Set extradata for subtitle tracks in mkv demuxer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25681 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 21:45:13 +00:00
eugeni 18e9531401 Add extradata to sh_sub_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25680 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 21:45:10 +00:00
eugeni 4c512b27c3 Factorize private data decoding for subtitle tracks in mkv demuxer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25679 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 21:45:08 +00:00
reimar 8c38419374 Make code slightly less confusing to me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25678 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 20:55:08 +00:00
reimar c9f2fed145 Slightly deobfuscate
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25677 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 20:42:32 +00:00
reimar c706a93140 Another small simplification. Slightly worse performance in the case
where a buffer underrun happens, but this really should not matter.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25676 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 20:36:33 +00:00
reimar 023340d6bd Slightly simplify read_buffer code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25675 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 20:32:42 +00:00
reimar 1b4cd62e0b Simplify: use memset
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25674 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 20:23:46 +00:00
reimar 27064210bc Fix indentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25673 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 20:12:04 +00:00
reimar dfa7718673 Remove useless cast
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25672 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 20:10:39 +00:00
ben 3e3fcae6bf document vo.* and ao.* playback profiles
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25671 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 19:59:08 +00:00
ulion 85941859b2 Fix buffer overflow bug by calculate the buffer size accurately.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25670 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-11 10:15:46 +00:00
ben 989b1fe59b allow profile loading per audio/video output
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25669 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 23:32:50 +00:00
reimar 89518d1df3 Add an extra check to avoid a case that cause black lines in scaled
vobsubs due to an overflow in the multiplication.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25668 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 21:47:33 +00:00
eugeni 8661c5f8c0 Clear demuxed data when subtitle track is changed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25667 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 19:59:09 +00:00
eugeni 85413c62e8 Use malloc for codecdata. Fixes segfault in free_sh_sub.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25666 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 19:47:18 +00:00
ben ec74c68e3d updated english manpage with protocol/extension profile loading feature
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25665 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 19:21:56 +00:00
ben 1043075a0d factorizes variable check
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25664 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 18:46:08 +00:00
ben 8944441a44 add support for per protocol and per extension playback profile loading
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25663 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 18:45:08 +00:00
ben 7a4efd3ce7 export m_config_set_profile()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25662 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 18:41:21 +00:00
ben b04ef6f779 allow generation of ctags and etags
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25661 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 18:40:26 +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
gpoirier 2bfb6a2436 sync w/r25657
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25659 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 16:20:42 +00:00
reimar f9e6def939 Codecdata must always be malloc'd, fixes free being called with an
invalid pointer when freeing codecdata.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25658 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 07:18:14 +00:00
compn 41f6ee5c0e dumpstream is NOT a better way to copy a dvd title
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25657 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 03:38:47 +00:00
compn 1bff7e5fda dvd-device can specify iso files too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25656 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 03:37:17 +00:00
uau 77c0eb8af9 Set CONFIG_SWSCALER in order to avoid imgresample
Set "CONFIG_SWSCALE=yes" in config.mak. This prevents building
libavcodec/imgresample.o which has symbols that conflict with swscale
ones.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25655 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 01:17:52 +00:00
uau b5aa5692cd Remove unnecessary <signal.h> includes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25654 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 01:17:49 +00:00
reimar 50e083bdb9 Use getppid instead of getpid and move a snprintf to where it is actually needed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25653 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-08 22:18:48 +00:00
reimar afb944d4c0 Simplify a needlessly complex use of snprintf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25652 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-08 22:18:35 +00:00
reimar 876b028289 Do not use exit_player in the signal handler, this code just can not
be called from a signal handler.
Instead only make the input system generate quit commands for the first
CTRL+C and otherwise do getch2_disable and exit.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25651 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-08 21:40:44 +00:00
eugeni 87340de57f Clear fonts when the file is closed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25650 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-08 12:46:20 +00:00
eugeni e779ddad56 Fix ass_clear_fonts not deallocating fontdata.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25649 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-08 12:45:41 +00:00
diego fe86c8557a Fix illegal identifiers, names starting with __ are reserved for the system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25648 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-08 00:37:41 +00:00
diego 7023cdec7b Fix illegal identifier, names starting with _ and uppercase are reserved.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25647 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-07 23:43:10 +00:00
diego 547094ba51 Fix illegal identifier, names starting with _ and uppercase are reserved.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25646 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-07 23:34:15 +00:00
diego 1aac3c3fde Fix #endif comment, sync with libdvdcss r208.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25645 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-07 22:46:53 +00:00