| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(cherry picked from commit 085943df25fc66cd461f21ff1374fc3f86e5ce11)
|
|
|
|
|
|
|
| |
The ALSA state generally can tell us more information in case we
get an unexpected error.
(cherry picked from commit cea4ff3e5fb5766d34f068742d00b127fa66013f)
|
|
|
|
|
|
|
|
|
|
|
| |
According to ALSA doxy, EPIPE is a synonym to SND_PCM_STATE_XRUN,
and that is a state that we should attempt to automatically recover
from. In case recovery fails, log an error and return zero.
A warning message will still be output for each XRUN since those
are not something we should generally be receiving.
(cherry picked from commit fdc952486a8c0d6446783e424953fdb6097ed987)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This has been way too long coming, and for me to notice that a
whole lot of ao_alsa functions do an early return if the AO is
paused.
For the STATE_SETUP case, I had this reproduced once, and never
since. Still, seems like we can start calling this function before
the ALSA device has been fully initialized so we might as well
early exit in that case.
(cherry picked from commit 3218a5808229b06bd7e2d41a912e7e7031525d56)
|
|
|
|
| |
(cherry picked from commit 9c184078a66a7de0e94d72a4bb038dde6a4ab455)
|
|
|
|
| |
(cherry picked from commit 9dbab9661c4ed36dca1b655440a02db37cd92af0)
|
|
|
|
|
|
|
| |
This prevents ao_jack from auto-connecting to MIDI ports (or other,
hypothetical future port types).
(cherry picked from commit fed0ea111bf0f4e7b4221c9311653b7c8e58bd02)
|
|
|
|
|
|
|
|
|
|
|
| |
mpctx->current_track[0][STREAM_VIDEO] (and STREAM_AUDIO) are empty when
using --lavfi-complex. Moving the muxer stream hinting after audio/video chain
initialization and checking if the chains exist fixes encoding with --lavfi-complex.
Previously, the output audio/video streams did not get prepared and the encode
would fail due to unexpected stream addition.
(cherry picked from commit 3744d0bda93d63a8ceb489a04f6c07817ce57d10)
|
|
|
|
|
|
|
|
|
| |
By overriding it with 1.0 (aka SDR). This prevents blowing up on
mistagged clips.
Fixes #6111
(cherry picked from commit 48c38f730d87b105716d9321a375175d2f01d401)
|
|
|
|
|
|
| |
also remove the now unused non-sensical af_fmt_seconds_to_bytes.
(cherry picked from commit 9d6b15ab32d4c231574f392c193a53e865b2206d)
|
|
|
|
|
|
|
|
| |
This reverts commit af6126adbe61fb2b6cc780025246d33df93072e6. Apple's
OpenAL support is ridiculously out of date, revert back to just using
OpenAL Soft on macOS (fixes #4645).
(cherry picked from commit 91786fa99c15dc64d3bce4be413326ba2dbe59f7)
|
|
|
|
|
|
|
|
|
|
|
|
| |
When using multiple compute shaders as part of the same pass, there can
be a conflict in the block sizes. In the problematic case, the HDR
detection shader can collide with the polar sampling shader. In this
case, the solution is clear - the passes that can handle any size should
"give in" and not overwrite the block sizes.
Fixes #6083.
(cherry picked from commit 1890ca024e541e1d07bdee242b75b24391b4434a)
|
|
|
|
|
|
| |
This fixes A-V drift on seeking
(cherry picked from commit a10754f038b7a69436bef536d9ed7cc4755ba0d1)
|
|
|
|
| |
(cherry picked from commit d2d7dba6ee3182174420c1d90caa20bf28ad7758)
|
|
|
|
|
|
| |
Suggested in IRC by sfan5.
(cherry picked from commit d8131568c8c900b62103f11846d149877654f2d9)
|
|
|
|
|
|
|
| |
Replace dot syntax with accessor syntax so that clang no longer errors
out due to not finding the property servicesMenu on NSApp.
(cherry picked from commit 4e9e46b9f8871f46de3e1a192cbcb02d54ba0d52)
|
|
|
|
|
|
|
|
| |
the colorspace of the layer is only available on 10.11 and upwards.
Fixes #6041
(cherry picked from commit 049816c1451449932f1ed2047f6643d7c7ac8a63)
|
|
|
|
|
|
|
|
|
|
| |
instead of force unwrapping and chaining the optional vars in our
containsMouseLocation function, safely unwrap and guard the resulting
var.
Fixes #6062
(cherry picked from commit 6bf0edc59cc377705a44fcb30890592aaaff79c0)
|
|
|
|
|
|
|
| |
so that af_fmt_to_planar (and hence af_fmt_from_planar) can just
return the input when it is not an interleaved (planar) format.
(cherry picked from commit f2311ff51461ec9539efb00458b8a54ded56511b)
|
|
|
|
|
|
| |
duration is parsed as an integer, and the default value is used if ```-1``` is passed. Passing ```-``` as described here causes a parameter value error.
(cherry picked from commit cfecbac863cea893d8f3cc462ea0610121f660da)
|
|
|
|
|
|
|
| |
An exclamation mark disables the filter by default instead of
enabling it.
(cherry picked from commit 759a6a259e8ac865afe9dbf5b15d55d82bf78d52)
|
|
|
|
|
|
| |
See af_fmt_to_planar.
(cherry picked from commit 4e91cb72ef926e6a7276c15f6a24549ff62afba8)
|
|
|
|
|
|
|
|
| |
Python 2 may not be present in the CI images in the future,
but waf’s shebang line still uses its executable name.
Explicitly call the right major version of the interpreter.
(cherry picked from commit 6eb59fea2fca348a72b0cc8a84ccb7dcfe2f8fe6)
|
|
|
|
|
|
|
|
|
| |
This way the docker container in itself does no networking.
It seems like travis disabled network access from the actual docker
containers.
(cherry picked from commit 2d785f3ea39d6779a6ac44d85d7cdc0acf891f43)
|
|
|
|
|
|
|
| |
Functions `write` and `smbc_write` are given a diminishing buffer of
incorrect constant size. After partial writes, the code would do another
write of the full original length, failing to subtract the amount
already written.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Thread-unsafe libsmbclient is likely to crash when used simultaneously
across threads. For example, by:
mpv "smb://...mkv" --sub-file "smb://...srt"
Work around this by locking all calls to this library under a single
global mutex. This is a temporary solution. When the libsmbclient bug
[1] is fixed, switch to the code from branch [2] which uses a new api to
create per-thread smb contexts. Fixes [3].
[1] https://bugzilla.samba.org/show_bug.cgi?id=11413
[2] https://github.com/orbisvicis/mpv/tree/smbclient_threaded_api
[3] https://github.com/mpv-player/mpv/issues/5936
(cherry picked from commit 112b3fa92266ab36dbffa2abf66034203f66b2ce)
|
|
|
|
|
|
|
| |
This was mistaken in 496b13227b7f4b47a660bbf4e314f9a55b7e8867 and
not noticed in review.
(cherry picked from commit 45beb7073a1cef89e87a2d562ce8c233fc140dae)
|
| |
|
|
|
|
|
|
|
| |
mpv.com fails to build when cross-compiling with a multilib version
of GCC, because the -m32 flags aren't getting passed to the build
process for osdep/win32-console-wrapper.c or the link phase for
mpv.com itself.
|
|
|
|
|
| |
This way the behavior of default libdir stays consistent before and
after switching to gnu_dirs from waf itself.
|
|
|
|
| |
Among other things, fixes compatibility with python 3.7.x.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This started breaking with newer (2.0.x) waf versions, and it was
noticed that a built-in waf module was providing very similar
functionality.
APPNAME definition was required to have `gnu_dirs`' PACKAGE
variable to be defined in order to have f.ex. documentation
installed to the correct directory.
Currently unused options added by `gnu_dirs` were removed to clean
up the output of the help command.
Effective changes to behavior:
- `gnu_dirs` will attempt to figure out if it needs to use lib64
instead of lib within your installation prefix. If you would
like it to not do that, set `--libdir` during configuration.
The way it tries to figure lib/lib64 out is if there's a
`/usr/lib64` and no `/usr/lib32`.
- `--incdir` is now `--includedir` as per standard `gnu_dirs`
behavior.
|
|
|
|
|
|
|
|
|
|
| |
Before, `do_the_symbol_stuff` would implicitly come before
`handle_add_object`, which adds object files to the linking task.
With newer (2.0.x) versions of waf, the ordering seems to get more
optimized, and thus we have to declare that the function that creates
the linking task should come before the task that adds object files
to the task.
|
|
|
|
|
|
|
|
| |
Add another parameter to mpv_opengl_drm_params to hold the FD to the
render node, so that the fd can be passed to hwdec_vaegl.
The render node is opened in context_drm_egl and inferred from the
primary device fd using drmGetRenderDeviceNameFromFd.
|
|
|
|
|
|
|
|
|
|
| |
The previous code did not save enough information about the old state,
and could end up changing what plane the fbcon:s FB got attached to,
or in worse case causing a blank screen (observed in some multi-screen
setups on Sandy Bridge).
In addition refactor the handling of drmModeModeInfo property blobs to
not leak, as well as enable reuse of already created blobs.
|
|
|
|
|
| |
Fix some memory leaks on error exit in crtc_setup_atomic and
crtc_release_atomic.
|
|
|
|
|
|
| |
According to earlier discussions, this can improve visual quality.
This only changes the preferred order of the formats, not the
formats themselves.
|
|
|
|
|
|
|
|
| |
this was caused by commit 2e7a4f7. the LAST_LINKFLAGS were not added to
the linking of libmpv and that caused a linking error. manually add the
link flags the same way it's done when linking mpv.
Fixes #5968
|
|
|
|
|
|
| |
Fixes compilation of the swift components with
`--variant="random_string"`, in which case "." is not the source
directory.
|
| |
|
|
|
|
| |
Much faster build cycles and more consistent download bandwidth.
|
| |
|
|
|
|
| |
This way it doesn’t override CC.
|
|
|
|
|
| |
Travis now builds with Clang and containers with git snapshots
of some dependencies.
|
|
|
|
|
|
|
|
| |
Temporary solution. For now, this builds using a container image
based on openSUSE Tumbleweed with the current FFmpeg release.
More containers will be added (at least with git snapshots of FFmpeg
and libass), and Travis will eventually be replaced with something
we have more control over.
|
|
|
|
| |
`--script-opts=autoload-disabled=yes` now
properly stops the script from running.
|
|
|
|
| |
Fixes #5923
|
| |
|
|
|
|
|
|
|
|
|
| |
init is a reserved keyword and Swift 4.2 got a bit stricter about using
it. this could be fixed by adding apostrophes around init but makes the
code uglier. hence i just renamed init to initialized and for
consistency uninit to uninitialized.
Fixes #5899
|
|
|
|
|
|
|
|
|
|
|
| |
this reverts commit a174566 since the actually reason for failing has
been found. the isysroot flag overwrites the framework and library
search paths. though we only need to overwrite the former and there is
no way to just overwrite that one. we manually add the standard library
search paths to the very end of the linking command, so it won't
interfere with the search paths extracted by waf.
Fixes #5791
|
|
|
|
|
|
|
|
|
|
|
| |
the pre-allocation was needed because the layer allocated a opengl
context async itself and we couldn't influence that. so we had to start
the core after the context was actually allocated. furthermore a window,
view and layer hierarchy had to be created so the layer would create
a context.
now, instead of relying on the layer to create a context we do this
manually and re-use that context later when the layer wants to create
one async itself.
|
| |
|
|
|
|
|
|
|
|
| |
The currently-displayed tags make sense for music files, but similar
information for video is more commonly - or at least should be - put
under other tags, while the audio-related tags are often used for
other information on video files (particularly with youtube-dl's
output).
|
|
|
|
|
| |
Those accidentally slipped in with 9975835bdeec3f2b04b136ef40c70b02487bb0e6
due to bad copy & paste.
|
|
|
|
|
| |
Change the log-level of an error message that would sometimes show up
during hwdec probing, and could be misleading.
|
| |
|
|
|
|
|
|
|
| |
When seeking near the end of the file and the next file loads, seeking
continues on the next file at the same position and then immediately
the file after that. This patch stops slider seeking when a new file is
loaded, which is the standard behavior of many other players.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Fixes a bug with alsa dmix on Fedora 29. After several minutes,
audio suddenly becomes bad and muted.
Actually, I don't know what causes this. Probably this is a bug in alsa.
In any case, as snd_pcm_status() returns not only 'avail', but also other
fields such as tstamp, htstamp, etc, this could be considered a good
simplification, as only avail is required for this function.
|
|
|
|
|
| |
Previously vo_sdl would unconditonally disable the screensaver,
ignoring the `stop-screensaver` option.
|
|
|
|
|
|
|
|
|
|
| |
This sacrifices some dynamic range for well-behaved sources, but
prevents catastrophic desaturation on badly mastered / too bright
sources. I think that's the better trade-off. This makes the
desaturation algorithm much "safer" to deploy by default, as well. One
could even argue going up to strength 1.0, which works better for some
sources but worse for others. But I think the current strength is the
best trade-off even after this change.
|
|
|
|
|
| |
I'm also not sure whether this condition doesn't subtly break a lot of
things.
|
|
|
|
|
| |
This code shouldn't even exist in libavformat. If you still need it, you
can enable it via --demuxer-lavf-o.
|
|
|
|
| |
Often requested, trivial.
|
|
|
|
|
| |
These were deprecated almost 2 years ago. Now they happen to be in the
way.
|
| |
|
|
|
|
|
|
|
|
| |
For some reason shadow_offset is a int16_t variable (to save some space
or something), which means the static part of the entire option list
must be below 32KB. This is fine, but still add a check against
overflows. (Currently it's 3.6KB. This does not include dynamic
allocations like strings.)
|