Commit Graph
30445 Commits
Author SHA1 Message Date
Uoti Urpala 9fe4f64782 demux_mkv.c, ebml.c: Reformat to K&R style 2009-12-29 21:58:30 +02:00
Uoti Urpala c447ef4e74 ao_alsa: Reinitialize parameters properly when reopening
ao_alsa used static variables to define the parameter values for
snd_pcm_hw_params_set_buffer_time_near() and
snd_pcm_hw_params_set_periods_near(). The variables were non-const and
the desired value was only set in the initializer. The ALSA functions
in question take a pointer argument to an in/out parameter which is
modified to reflect the value actually used. As a result, when playing
multiple files or otherwise reinitializing the AO the later instances
could use values that had been modified by earlier calls. Change the
code to always always use the same default values.
2009-12-29 16:54:38 +02:00
Uoti Urpala 57ce95b96a audio: Remove fixed decode_audio() return size limit (MAX_OUTBURST)
A couple of months ago MPlayer's ALSA driver started rounding the
amount of input data it was willing to accept in one call down to an
integer multiple of the value it set in ao_data.outburst. In some
configurations it was possible for this value to exceed the 64 KiB
limit on the amount MPlayer was willing to write in a single call to
the AO. As a result ao_alsa accepted 0 bytes in each play() call and
audio playback failed. Fix this by removing the fixed 64 KiB limit on
the amount of audio sent to AO at once; the limit was mostly a remnant
of older code anyway.
2009-12-29 15:51:59 +02:00
Uoti Urpala d7d8babe61 cosmetics: Revert old dec_audio.c code uglification
Revert 3 old code uglification changes that were done with the excuse
of gcc-2.95 support. The last reverted change was a fix to a bug
introduced in the middle change.

Revert "10l, len may change after initialization time"

This reverts commit ae9db277c7.

Revert "fix declaration after statement, take 2"

This reverts commit 4bceedee93.

Revert "fix declaration after statement"

This reverts commit aef0374c1c.
2009-12-28 22:08:46 +02:00
Uoti Urpala 8ee23f418f subtitles: Fix double text with libass rendered plaintext subs
When using libass to render plaintext (non-SSA/ASS) subtitles the code
in update_subtitles() still called set_osd_subtitle() in one case,
causing the global vo_sub variable containing non-libass subtitles to
be set. Under some circumstances this resulted in both a
libass-rendered and non-libass-rendered version of the same subtitle
appearing on screen. Fix by running the subtitle clearing code (which
called set_osd_subtitle) only when libass is not used.
2009-12-18 19:53:34 +02:00
Uoti Urpala efcc9ad712 Merge svn changes up to r30055 2009-12-18 18:54:42 +02:00
jrash 8fcbe5835d Synced with help_mp-en.h r30044
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30055 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-18 11:31:58 +00:00
jrash c911be4073 sync with en/mplayer.1 r30053
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30054 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-18 11:15:09 +00:00
cehoyos 54fc3a69e7 Support R210 uncompressed 10 bit RGB codec.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30053 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 20:15:34 +00:00
reimar baaee832fd Do not modify priv->idx_pos when regenerating the index, use a local
variable instead.
should fix seeking after starting playback with -force-idx broken by
r29914.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30052 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 18:31:59 +00:00
cehoyos e3b42e3e96 Cosmetics: Reindent after r30050.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30051 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 13:27:15 +00:00
cehoyos 3303bb67ec Slightly increase hardware decoding performance by always using more
video surfaces than absolutely necessary.

I will revert if somebody reports real-world resource issues introduced
by this commit.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30050 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 13:23:15 +00:00
adrian d8fed1f04c Cosmetics: reindent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30049 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 10:57:40 +00:00
cehoyos 9182f6a97c Improve VDPAU render performance by increasing number of output surfaces.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30048 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 02:16:12 +00:00
diego c796878e40 Make vidix/pci_db2c.awk executable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30047 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-16 23:44:26 +00:00
adrian 1078baf9aa The fontconfig check added in r30044 wasn't safe. This makes it more robust.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30046 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-16 22:36:17 +00:00
diego d018006adc Simplify the evaluation of the lang-def template:
Use the language variable directly in the template instead of passing
the language variable as a parameter to $(call).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30045 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-16 11:59:53 +00:00
adrian 067b817500 Fix a crash when fontconfig is unable to select a font. e.g. if no config directory could be found.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30044 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-16 11:11:31 +00:00
adrian 2a33cd01f6 Add support for -geometry to corevideo.
Based on a patch by Tim Wojtulewicz (timwoj at ieee dot org).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30043 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-15 20:38:54 +00:00
adrian 5f0b5dcaa9 Add -xineramascreen support to corevideo vo. Still prefer corevideo's own device_id parameter if it's set.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30042 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-15 20:25:50 +00:00
Uoti Urpala 1598302be6 Fix printf format strings with invalid '%lf' conversion
Some code used an invalid '%lf' conversion specification for double
arguments. Maybe they were written that way due to confusion with
scanf where doubles are indicated by '%lf'; however it is not a valid
printf format specifier. Change those cases to use '%f'.
2009-12-15 15:27:30 +02:00
compn 8448c91153 add spdif example from beandog
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30041 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-15 02:13:51 +00:00
diego 69171f86e2 Filter list of missing source files so that it only contains nonexisting files.
Thus those files can be symlinked directly without testing if they exist.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30040 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 12:03:02 +00:00
diego 1745f18511 Add missing #includes to fix a bunch of 'implicit declaration of..' warnings.
patch by Peter Hjalmarsson, xake rymdraket net


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30039 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 11:54:49 +00:00
diego 316cd982df Use $(notdir ) to filter out path prefixes instead of reinventing it poorly.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30038 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 04:06:25 +00:00
diego 0f4aed64d1 Avoid hackish shell loop to symlink missing XML source files.
Instead, employ make syntax to generate the shell command arguments.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30037 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:50:34 +00:00
diego 49b5defb6e Globally remove main.xml from SYMLINKS_DEPS. It should never be symlinked.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30036 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:43:54 +00:00
diego 3ea762f28f Reuse SYMLINKS_DEPS variable in the symlink targets.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30035 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:35:26 +00:00
diego 05f35acd58 Simplify shell command to symlink missing translated source files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30034 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:32:12 +00:00
diego f39814302d Ignore errors from failing rm commands in clean targets.
This is also the policy we have in the top-level Makefile.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30033 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:19:01 +00:00
diego ac50f58248 Do not ignore errors from mkdir invocations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30032 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:17:23 +00:00
diego 35a7136f5c The general xmllint target should only check configured languages.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30031 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:14:21 +00:00
diego 055694d3cd Improve declaration of phony targets.
This prevents configure from being rerun all the time.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30030 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:09:09 +00:00
diego 1586e9212d Factorize dependencies of language-specific HTML generation targets.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30029 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:07:35 +00:00
diego 9e41ccd3bc spelling cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30028 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 03:01:40 +00:00
diego 6fe2e9b0ac Remove pointless dependency on xmllint.sh from phony xmllint target.
The individual language targets carry that dependency.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30027 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:59:39 +00:00
diego 0ba35473eb Drop pointless dependencies of the phony targets html-chunked and html-single.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30026 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:45:55 +00:00
diego 7cc9d58f73 Fix dependencies of html-chunked and html-single targets.
All the files generated by configure are required.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30025 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:42:59 +00:00
diego 8bc89968cf Exploit one more opportunity to make use of the CONFIGURE_GENERATED variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30024 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:40:55 +00:00
diego bd1e209f88 Factorize all components generated by configure into a variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30023 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:39:22 +00:00
diego 318f59cc4d Remove outdated comment about build system behavior.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30022 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:34:41 +00:00
diego 24d9de2ce4 cosmetics: Rename XSL_DEPS variable to SINGLE_XSL_DEPS for consistency.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30021 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:25:40 +00:00
diego 62197a7183 Drop support for per-language XSL stylesheets.
The feature was never properly used and provides little benefit.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30020 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:01:50 +00:00
diego 0886fd0089 Remove pointless Polish stylesheet; it provides no real benefit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30019 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 02:00:25 +00:00
diego a1c5ce6119 Drop support for per-language stylesheets.
In all these years nobody ever used this feature.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30018 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 01:51:42 +00:00
diego 130e2f9b67 Unconditionally symlink documentation files missing from a translation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30017 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 01:34:02 +00:00
diego 1f52f67652 Use variable for HTML stylesheet so individual languages can use their own.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30016 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 00:57:33 +00:00
diego 18c69ef780 Factorize stylesheet installation into its own target.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30015 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 00:42:46 +00:00
diego b933c31df5 Construct monolithic targets with the HTMLDIR instead of the HTMLFILE variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30014 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-14 00:16:32 +00:00
diego 4a7eee5392 Factorize generating the list of all main.xml files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30013 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-13 23:59:10 +00:00