0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
Commit Graph

41249 Commits

Author SHA1 Message Date
James Ross-Gowan
2739ea80b7 Revert "win32: fix desktop directory"
This reverts commit f56a7af9f6.

This was incorrectly merged. There's no folder parameter in the version
of the function on the release branch.
2015-06-24 21:08:59 +10:00
Diogo Franco (Kovensky)
c00ef456a5 Fix URL in RELEASE_NOTES 2015-05-19 11:22:05 +09:00
Diogo Franco (Kovensky)
6beed16016 Release 0.9.2 2015-05-19 11:19:25 +09:00
Diogo Franco (Kovensky)
abfa51e890 Update RELEASE_NOTES 2015-05-19 11:19:09 +09:00
wm4
a7794d6fc1 x11: never forcefully terminate xdg-screensaver process
It sometimes happens on exit, and it's probably a bad idea. If the
process hangs on exit (possibly due to stupid hardcoded timeouts it's
doing), mpv will also hang now, unfortunately.

(cherry picked from commit be9bf4cc7c)
2015-05-19 11:12:47 +09:00
wm4
4d6470fde0 sub: add .sup file extension for subtitle autoloading
(cherry picked from commit 21cb1f7075)
2015-05-19 11:12:13 +09:00
Avi Halachmi (:avih)
b9f073d5cb manpage: improve osc help
Signed-off-by: wm4 <wm4@nowhere>
(cherry picked from commit bc503a0e88)
2015-05-19 11:12:01 +09:00
torque
d5b6419eec DOCS/client_api_examples: Qt: force qmake to use pkg-config.
(cherry picked from commit 5d2a2c7fc2)
2015-05-19 11:11:54 +09:00
wm4
679de2b295 manpage: lua: clarify OSD differences between mp.command/mp.commandv
Conflicts:
	player/audio.c
	player/video.c

(cherry picked from commit f9ff4b59a2)
2015-05-19 11:11:46 +09:00
wm4
8f9cb82f4f x11: attempt to make initial fullscreening more reliable
It appears some WMs have a problem with out method of setting initial
fullscreen mode. We assume that if the window's _NET_WM_STATE includes
_NET_WM_STATE_FULLSCREEN before mapping the window, the WM will show it
as fullscreen at mapped. EWMH doesn't say anything that this should
work, although one could argue that it's implied.

In any case, since it's not standard behavior without at least some
doubt, it's probably a good idea to try the "old" method as well.
Fortunately, it should be idempotent.

See #1937, #1920.

(cherry picked from commit a4f3df5970)
2015-05-19 11:11:38 +09:00
wm4
b4fdb25611 vf_vapoursynth: reject unaligned video sizes
Leads to some nice memory corruption otherwise.

(cherry picked from commit 06bfa9309d)
2015-05-19 11:11:24 +09:00
wm4
a9cac8ade0 vo: remove suspicious line
pts can never be 0 or negative. If there is no frame, some code below
catches this case by checking hasframe.

(cherry picked from commit 372b85b9d2)
2015-05-19 11:11:19 +09:00
Diogo Franco (Kovensky)
4422c1698f Update RELEASE_NOTES 2015-05-15 19:29:14 +09:00
Michael Vetter
6eab622e7b Remove trailing whitespaces
(cherry picked from commit 9251fa125f)
2015-05-15 19:16:47 +09:00
wm4
6a5f3c3928 manpage: explain some property expansion restrictions
(cherry picked from commit 0468a4ea47)
2015-05-15 19:15:43 +09:00
wm4
721ec88068 manpage: remove stray newline
(cherry picked from commit a23a46c6ed)
2015-05-15 19:15:31 +09:00
Christian Hesse
f3c699a904 build: check for lua52
Arch linux is about to update to lua 5.3.x, but lua 5.2.x will be
provided by package lua52, which contains pkg-config file lua52.pc.

Signed-off-by: wm4 <wm4@nowhere>
(cherry picked from commit 5b085fd8b1)
2015-05-15 19:15:14 +09:00
wm4
42fc0d96fc vo: avoid burning CPU when paused
Some code always calls vo_event(), even with event==0, which leads to
immediate wakeup, which in turn causes the function to be called again.
This would burn CPU, which was especially noticeable when paused.

(cherry picked from commit 0bdef9979f)
2015-05-15 19:15:05 +09:00
wm4
bbbedddddc vo_opengl_cb: actually set requested options
Quite an oversight.

(cherry picked from commit 4d9255a5e1)
2015-05-15 10:30:49 +09:00
wm4
e34c02981f vo: always call draw_image_timed() if available
Gives the VOs more flexibility.

gl_video.c already ignores the timing info if no interpolation is
active, so this requires no further changes.

(cherry picked from commit af157db7e5)
2015-05-15 10:30:32 +09:00
wm4
37ad3e79dd threads: use utility+POSIX functions instead of weird wrappers
There is not much of a reason to have these wrappers around. Use POSIX
standard functions directly, and use a separate utility function to take
care of the timespec calculations. (Course POSIX for using this weird
format for time values.)

(cherry picked from commit 92b9d75d72)
2015-05-15 10:30:15 +09:00
wm4
328d0c7fc3 ao: make better use of atomics
The main reason for this was compatibility; but some associated problems
have been solved in the previous commit.

(cherry picked from commit ca9964a4fb)
2015-05-15 10:30:03 +09:00
wm4
26409165ed atomics: add atomic_fetch_and/atomic_fetch_or
As usual, we prefer plain C11 names and semantics, and have to emulate
them if C11 atomics are not available.

For the non-atomic fallback (which is just there to make code compile in
situations the atomic property is not overly important), we require a
gross hack to make the generic macros work without using compiler-
specific extensions.

(cherry picked from commit cc24ec5b3c)
2015-05-15 10:29:53 +09:00
wm4
a7e35fadb1 cocoa: add missing break statements in switch
The first one (for VOCTRL_GET_DISPLAY_FPS) could have led to undefined
behavior if the FPS was unknown. The second is for general symmetry.

(cherry picked from commit 10149f68a5)
2015-05-15 10:29:40 +09:00
rrooij
b9a6e18720 DOCS/man/options.rst: Remove trailing whitespaces
(cherry picked from commit 47ee67b8a2)
2015-05-15 10:28:58 +09:00
rrooij
33689ba945 DOCS/man/opions.rst: Elaborate on --no-video
When --no-video is set, the ytdl-format is set to "bestaudio/best". This
wasn't documented in the man page yet.

(cherry picked from commit 5d7468a06e)
2015-05-15 10:28:52 +09:00
wm4
a96dceaae2 ytdl_hook: remove tabs
We don't allow tabs in normal source code.

(cherry picked from commit 9438f811ae)
2015-05-15 10:28:34 +09:00
wm4
002c387781 old-configure: bump libbluray version
Fixes #1927.

(cherry picked from commit 1f389b05fc)
2015-05-15 10:28:09 +09:00
wm4
9ed399f27c player: avoid undefined behavior when resumign DVD/BD playback
These device options can be NULL, and NULL can't be passed for %s.

(cherry picked from commit 34ee78f2cb)
2015-05-15 10:27:30 +09:00
wm4
0d9275b931 vo_drm: allow changing video rectangle settings
Now among other things panscan can be changed during playback.

Unfortunately, it flickers. The issue is that reconfig() clears the
framebuffer. Removing the clearing shows that the "unused" parts of
the picture are not cleared - even though OSD could render there. As
such, this is a separate issue.

(cherry picked from commit 5631060569)
2015-05-09 21:15:26 +09:00
wm4
b2f44f131f vo_drm: don't mutate the current frame when clamping for panscan
When running with --panscan=1, this could crash - because the current
frame was reduced in size each time the image was redrawn, which would
result in a failed assertion the second time it's drawn.

(cherry picked from commit 859ddc9906)
2015-05-09 21:15:15 +09:00
wm4
5f81da0b88 input: filter out redundant mp_input_set_mouse_pos() calls
Prevents the OSC from showing up on start on Cocoa.

(cherry picked from commit 51120c9c7f)
2015-05-09 21:15:04 +09:00
wm4
01c452cfba audio: simplify further
Drop mp_chmap_diff() (which is unused too now), and implement
mp_chmap_diffn() in a slightly simpler way. (Too bad there is no
standard function for counting set bits.)

(cherry picked from commit 00130651da)
2015-05-09 21:14:51 +09:00
wm4
ba799895e1 audio: remove mp_chmap_contains()
It's unsued now.

(cherry picked from commit 8d5924f2c9)
2015-05-09 21:14:35 +09:00
wm4
438ae9f742 ao: log reordered versions of channel maps
Useful for debugging cases when no standard orders are used.

(cherry picked from commit 8b7035c8ff)
2015-05-09 21:14:25 +09:00
wm4
015a7638fb audio: redo channel map fallback selection
Instead of somehow having 4 different cases with each their own weight,
do it with a single function that decides which channel layout is the
better fallback.

This is simpler, and also introduces new (fixed) semantics. The new test
added to test/chmap_sel.c actually works now. This is a mixed case with
no perfect upmix or downmix, but the better choice is the one which
loses the least channels from the original layout.

One test also changes. If the input is 7.1(wide-side), and the available
layouts are 7.1 and 5.1(side), the latter is now chosen instead of the
former. This makes sense: both layouts contain 6 out of 8 channels from
the original layout, but the 5.1(side) one is smaller. This follows the
general logic. The 7.1 layout has FLC/RLC speakers instead of BL/BR,
and judging by the names, "front left center" is completely different
from "back left". If these should be exchangeable, a separate exception
would have to be added.

(cherry picked from commit 3560a50029)
2015-05-09 21:14:15 +09:00
wm4
1f4e087e6f test: simplify chmap_sel tests
(cherry picked from commit 5142b0e3f3)
2015-05-09 21:14:00 +09:00
wm4
0ed627d5ab audio: remove UNKNOWN pseudo speakers
Reuse MP_SPEAKER_ID_NA for this. If all mp_chmap entries are set to NA,
the channel layout has special "unknown channel layout" semantics, which
are used to deal with some corner cases.

(cherry picked from commit 55e777f10b)
2015-05-09 21:13:52 +09:00
wm4
1127bb41c2 audio: define only a single NA speaker ID
Remove the requirement from mp_chmap that speaker entries must be
unique. Use this to get rid of all the redundant NA speaker IDs.

(cherry picked from commit b91b4944bd)
2015-05-09 21:13:21 +09:00
wm4
f58646c85c audio: add chmap utility function
(cherry picked from commit d32b71d52e)
2015-05-09 20:18:54 +09:00
wm4
d224c89034 ao_alsa: log requested numbers of channels if ALSA rejects them
(cherry picked from commit ad9bce2a5c)
2015-05-09 20:18:35 +09:00
Diogo Franco (Kovensky)
63b92944d0 Revert "csputils: apply contrast equalizer in RGB"
This reverts commit af930e2a2e.

Better avoid big behavior changes within a release series.
2015-05-08 16:40:01 +09:00
Diogo Franco (Kovensky)
d939de5a71 Update RELEASE_NOTES 2015-05-08 16:38:46 +09:00
wm4
0f834d0d5a audio: fix messed up assert()
This made no sense and always evaluated to true.

(cherry picked from commit 7b09654c33)
2015-05-08 16:38:46 +09:00
wm4
375437f204 m_config: make m_config_set_profile() use a name
Is simpler and avoids exposing profile structs to a degree.

(cherry picked from commit 036a49478f)
2015-05-08 16:38:46 +09:00
wm4
ceea08d7fe DOCS: add a link to LIRC wiki entry
(cherry picked from commit b12ca2b980)
2015-05-08 16:38:46 +09:00
wm4
b76df84687 ao_coreaudio_utils: don't list some formats as "unusable"
While mpv has no internal equivalent representation, they can still be
used as physical CoreAudio formats. Thus this label is confusing.

(cherry picked from commit 1bcb82ec93)
2015-05-08 16:38:46 +09:00
ChrisK2
8db3a5b3e4 ytdl_hook: Escape EDL URLs
Should prevent the EDL parser from tripping over = and , in the
URL.

(cherry picked from commit 6a0a67034d)
2015-05-08 16:38:45 +09:00
wm4
eccea21361 ao_sndio: add notice about padding channels
(I won't do this, but someone else seeing this might.)

(cherry picked from commit cd5ab98ff9)
2015-05-07 10:55:34 +09:00
wm4
52ed30e9b8 ao_alsa: use new padding channels support
Sometimes, ALSA will return channel layouts with padded channels (NA
speakers). Use them instead of failing.

This still includes the old "braindeath" code to retry with a layout
without NA channels. This might be helpful for performance, and also the
padded channel layout string looks confusing.

To be fair, I have not encountered a case yet which would really need
this, and for which the old "braindeath" code did not fix it.

(cherry picked from commit 85fc6b2a05)
2015-05-07 10:54:49 +09:00