vlc.git
2 months agodemux: adaptive: fixup AnyURI
Francois Cartegnie [Wed, 20 May 2020 15:02:53 +0000 (17:02 +0200)]
demux: adaptive: fixup AnyURI

2 months agoclock: check condition before calculation
Zhao Zhili [Wed, 20 May 2020 15:28:04 +0000 (23:28 +0800)]
clock: check condition before calculation

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2 months agodirectory: remove PATH_MAX limit (fixes #24754)
Rémi Denis-Courmont [Wed, 20 May 2020 15:37:17 +0000 (18:37 +0300)]
directory: remove PATH_MAX limit (fixes #24754)

2 months agoRevert "contribs: srt: use HAVE_GNUV3 to enable"
Alexandre Janniaux [Thu, 7 May 2020 10:05:24 +0000 (12:05 +0200)]
Revert "contribs: srt: use HAVE_GNUV3 to enable"

This reverts commit 8570ea869abb5ff95467336b843f164aa74ee527.

Nettle is actually multilicensed as GPLv2 too, and the define was even
wrong.

2 months agoopengl: only use sampler from fragment_shaders.c
Romain Vimont [Wed, 5 Feb 2020 14:38:36 +0000 (15:38 +0100)]
opengl: only use sampler from fragment_shaders.c

The renderer instance is not needed anymore.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: remove interop reference from renderer
Romain Vimont [Mon, 3 Feb 2020 16:00:15 +0000 (17:00 +0100)]
opengl: remove interop reference from renderer

Remove the (weak) reference to the interop from the renderer structure.

The interop is still accessed explicitly from the renderer via the
sampler structure for now.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: expose functions to call sampler callbacks
Romain Vimont [Wed, 5 Feb 2020 14:24:37 +0000 (15:24 +0100)]
opengl: expose functions to call sampler callbacks

The fact that the sampler use internal function pointers (instead of
if-blocks for example) is an internal detail.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: simplify pf_prepare_shader()
Romain Vimont [Wed, 5 Feb 2020 14:20:37 +0000 (15:20 +0100)]
opengl: simplify pf_prepare_shader()

Remove tex_width and tex_height parameters, as they are either unused or
accessible from the sampler itself.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: remove alpha parameter from prepare_shader
Romain Vimont [Wed, 5 Feb 2020 14:07:40 +0000 (15:07 +0100)]
opengl: remove alpha parameter from prepare_shader

The alpha value was used to render subpictures, which are now drawn by
the subpictures renderer using its own fragment shader.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: load uniforms from sampler
Romain Vimont [Wed, 5 Feb 2020 10:08:50 +0000 (11:08 +0100)]
opengl: load uniforms from sampler

Load uniforms related to sampler from sampler->pf_prepare_shader.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: fetch locations from sampler
Romain Vimont [Mon, 3 Feb 2020 15:45:08 +0000 (16:45 +0100)]
opengl: fetch locations from sampler

Fetch locations related to sampler from sampler->pf_fetch_locations.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: move callbacks to sampler
Romain Vimont [Tue, 4 Feb 2020 16:04:15 +0000 (17:04 +0100)]
opengl: move callbacks to sampler

The sampler is responsible to fetch its locations and initialize its
uniforms (including GLSL samplers).

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: define identity matrices in gl_util.h
Romain Vimont [Wed, 5 Feb 2020 10:15:09 +0000 (11:15 +0100)]
opengl: define identity matrices in gl_util.h

This will allow to use them from several files.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: reference common objects from sampler
Romain Vimont [Tue, 4 Feb 2020 16:01:50 +0000 (17:01 +0100)]
opengl: reference common objects from sampler

For convenience, expose the vlc_gl_t and the OpenGL virtual table in
sampler.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: extract sampler creation and destruction
Romain Vimont [Mon, 3 Feb 2020 13:55:42 +0000 (14:55 +0100)]
opengl: extract sampler creation and destruction

Extract sampler creation and destruction to separate functions.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: reference interop from sampler
Romain Vimont [Mon, 3 Feb 2020 14:48:04 +0000 (15:48 +0100)]
opengl: reference interop from sampler

This allows to use an interop instance without a renderer.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: use the interop format in renderer
Romain Vimont [Thu, 6 Feb 2020 10:30:11 +0000 (11:30 +0100)]
opengl: use the interop format in renderer

The interop initializes its own video_format_t from the input format.

In the renderer initialization, always use this updated format. This
avoids an additional format parameter, which may be confusing.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: remove intermediate local variable
Romain Vimont [Tue, 10 Mar 2020 16:21:38 +0000 (17:21 +0100)]
opengl: remove intermediate local variable

The projection mode can be read from the provided video format. The
intermediate renderer variable is unnecessary.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: simplify renderer format
Romain Vimont [Tue, 10 Mar 2020 16:04:24 +0000 (17:04 +0100)]
opengl: simplify renderer format

The interop may modify its own copy of the video_format_t. These changes
must be reported to the core (by writing to the provided
video_format_t).

But as a hack, the Android interop currently flips the orientation to
avoid a vertical flip in the renderer, since it provides its own
transform matrix. This change must not be reported to the core (the core
must not flip the input), so the orientation change is reverted. A
further refactor will remove this hack later.

Meanwhile, handle the format to report to the core outside of the
renderer, so that the renderer is not involved in this hack. This paves
the way to pass only the interop to the renderer, without an additional
video_format_t instance.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: move interop ownership to vgl
Romain Vimont [Mon, 3 Feb 2020 10:31:33 +0000 (11:31 +0100)]
opengl: move interop ownership to vgl

The interop instances were owned by the renderers.

To prepare for making the renderers independant of the input picture
(in particular, independant of the interop), make the vgl own the
interop instances.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: extract renderer fields to sampler
Romain Vimont [Thu, 30 Jan 2020 15:53:04 +0000 (16:53 +0100)]
opengl: extract renderer fields to sampler

Move the fields necessary to retrieve a picture pixel from its
coordinates.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agoopengl: simplify libplacebo initialization
Romain Vimont [Tue, 19 May 2020 16:20:55 +0000 (18:20 +0200)]
opengl: simplify libplacebo initialization

Initialize GLSL version statically, so that it does not depend on
renderer->glsl_version.

This will simplify further refactors.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
2 months agowin32: Don't force enable faad
Martin Storsjö [Wed, 20 May 2020 09:46:20 +0000 (12:46 +0300)]
win32: Don't force enable faad

The faad library isn't built for arm (see contrib/src/faad2/rules.mak),
and since eea2b42638cd5d, configure actually errors out if fadd wasn't
found when it was requested to be enabled (previously this seems to have
been the intent, but it didn't actually do that).

2 months agocontrib: gnutls: replace the win32 patch with sed commands
Steve Lhomme [Mon, 23 May 2016 07:18:17 +0000 (09:18 +0200)]
contrib: gnutls: replace the win32 patch with sed commands

It's more flexible after updates.

2 months agocontrib: gnutls: disable the dllimport forced even in static linking
Steve Lhomme [Tue, 19 May 2020 14:41:16 +0000 (16:41 +0200)]
contrib: gnutls: disable the dllimport forced even in static linking

2 months agocontrib: lua: respect LDFLAGS under mingw
Steve Lhomme [Thu, 30 Apr 2020 15:05:18 +0000 (17:05 +0200)]
contrib: lua: respect LDFLAGS under mingw

2 months agokeychain: Do not link against Cocoa
David Fuhrmann [Tue, 19 May 2020 20:29:14 +0000 (22:29 +0200)]
keychain: Do not link against Cocoa

This is a module used for both iOS as well as macOS, so it should
only use frameworks available on both platforms. And in fact,
linking against Cocoa is not necessary for macOS as well.

2 months agoCI: Enable pages job on schedules
Konstantin Pavlov [Tue, 19 May 2020 14:48:23 +0000 (17:48 +0300)]
CI: Enable pages job on schedules

2 months agoqml: fullscreen button should ask videofullscreen
Pierre Lamot [Tue, 5 May 2020 13:21:12 +0000 (15:21 +0200)]
qml: fullscreen button should ask videofullscreen

otherwise the interface stays fullscreen when the video ends

2 months agoqt: remove qml instantiation and video embedding from the main_interface
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
qt: remove qml instantiation and video embedding from the main_interface

  QML UI is injected from MainUI and Video integration is handled by the
  compositor

2 months agoqt: move qml initialisation out of the main interface
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
qt: move qml initialisation out of the main interface

2 months agoqt: add DirectCompositor compositor
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
qt: add DirectCompositor compositor

2 months agocontrib: allow static linking of ANGLE on Windows
Pierre Lamot [Wed, 6 May 2020 16:29:10 +0000 (18:29 +0200)]
contrib: allow static linking of ANGLE on Windows

  Add KHRONOS_STATIC to allow static linking on Windows.

2 months agoqt: provide a dummy compositor
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
qt: provide a dummy compositor

2 months agoqt: add compositor interface
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
qt: add compositor interface

2 months agoqt: move vout window report functions to the Video surface provider
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
qt: move vout window report functions to the Video surface provider

  QVoutWindow functionalities will be superseded by the compositor

2 months agoqt: remove dependency from mainUI in the toolbar editor
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
qt: remove dependency from mainUI in the toolbar editor

2 months agoqml: use the top window to filter global key events rather than the embed widget
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
qml: use the top window to filter global key events rather than the embed widget

2 months agoqml: rename rootWindow to mainInterface
Pierre Lamot [Wed, 29 Apr 2020 15:19:28 +0000 (17:19 +0200)]
qml: rename rootWindow to mainInterface

  the variable points to the MainInterface and not its actual window

2 months agod3d11: allow rendering video to DirectComposition surfaces
Pierre Lamot [Tue, 24 Mar 2020 08:52:50 +0000 (09:52 +0100)]
d3d11: allow rendering video to DirectComposition surfaces

2 months agocontrib: vpx: remove strip step and fix debug symbols
Alexandre Janniaux [Thu, 30 Apr 2020 09:39:14 +0000 (11:39 +0200)]
contrib: vpx: remove strip step and fix debug symbols

Without CONFIG_DEBUG set, libvpx is calling `$(STRIP) --strip-debug`
on the final library and removes the debug symbols from it. With the
variable set, it becomes a simple copy operation.

In addition, debug symbols should be enabled for all builds since we
strip in the end, so as to have the debug symbols in a separate file
when doing releases. In case we build with optimization, remove the
assertions.

2 months agodemux: mp4: fix -Wformat warning with PRIu16
Alexandre Janniaux [Mon, 4 May 2020 17:36:05 +0000 (19:36 +0200)]
demux: mp4: fix -Wformat warning with PRIu16

MP4_BoxGet doesn't need a dedicated format for the given index.

2 months agohttp_auth: fix -Wstringop-truncation warning
Alexandre Janniaux [Mon, 4 May 2020 17:36:55 +0000 (19:36 +0200)]
http_auth: fix -Wstringop-truncation warning

The size of hashes are fixed so there is no need for str functions, as
otherwise strncpy complains about having the destination size equal to
the given size with fortify.

2 months agoaccess: rtp: fix print descriptor for size
Alexandre Janniaux [Mon, 4 May 2020 16:57:33 +0000 (18:57 +0200)]
access: rtp: fix print descriptor for size

Size is an uint64_t because of vlc_stream_GetSize, not a size_t.

2 months agocodec: Makefile.am: remove AudioUnit for audiotoolboxmidi
Alexandre Janniaux [Mon, 4 May 2020 12:23:49 +0000 (14:23 +0200)]
codec: Makefile.am: remove AudioUnit for audiotoolboxmidi

AudioUnit framework is not found on iOS and is not needed on MacOSX.

2 months agoaudio_output: Makefile.am: fix audiounit_ios link
Alexandre Janniaux [Mon, 4 May 2020 12:23:48 +0000 (14:23 +0200)]
audio_output: Makefile.am: fix audiounit_ios link

Remove AudioUnit framework as it is not found on iOS and only
AudioToolbox is needed.

In addition CoreServices cannot be linked for the iOS/tvOS targets as it
is available starting with iOS/tvOS 12.0+.

2 months agovideo_output: Makefile.am: link vout_ios to Foundation
Alexandre Janniaux [Mon, 4 May 2020 09:44:31 +0000 (11:44 +0200)]
video_output: Makefile.am: link vout_ios to Foundation

Fixes the following undefined references:

  "_OBJC_CLASS_$_NSNotificationCenter", referenced from:
      objc-class-ref in ios.o
  "_OBJC_CLASS_$_NSThread", referenced from:
      objc-class-ref in ios.o
  "_OBJC_CLASS_$_NSValue", referenced from:
      objc-class-ref in ios.o

2 months agovideo_output: Makefile.am: fix link for interop_cvpx on ios
Alexandre Janniaux [Mon, 4 May 2020 09:44:30 +0000 (11:44 +0200)]
video_output: Makefile.am: fix link for interop_cvpx on ios

There were no LDFLAGS for iOS/tvOS and vt_utils were not compiled but
linking worked because videotoolbox was linked in the final static
library archive.

2 months agokeystore: makefile: link cocoa only on OSX
Alexandre Janniaux [Mon, 4 May 2020 08:34:25 +0000 (10:34 +0200)]
keystore: makefile: link cocoa only on OSX

Cocoa doesn't exist on iOS and tvOS.

2 months agopackage/win32: build.sh: actually use $TRIPLET-pkg-config when it works
Steve Lhomme [Tue, 19 May 2020 11:54:57 +0000 (13:54 +0200)]
package/win32: build.sh: actually use $TRIPLET-pkg-config when it works

Fixes 6746f5787356c189323228a37bd52b8e6406cfab

2 months agoconfigure.ac: handle faad pkgconfig
Francois Cartegnie [Thu, 30 Apr 2020 12:26:14 +0000 (14:26 +0200)]
configure.ac: handle faad pkgconfig

2 months agoinput: es_out_timeshift: use union for block offset
Francois Cartegnie [Wed, 22 Apr 2020 15:56:50 +0000 (17:56 +0200)]
input: es_out_timeshift: use union for block offset

2 months agoinput: es_out_timeshift: fix asynchronous accounting of ES
Francois Cartegnie [Mon, 20 Apr 2020 18:21:19 +0000 (20:21 +0200)]
input: es_out_timeshift: fix asynchronous accounting of ES

You can't keep track of scheduled ES as they don't exist
and they expire with the command list.

2 months agoinput: es_out_timeshift: store commands as different sizes
Francois Cartegnie [Wed, 22 Apr 2020 16:21:48 +0000 (18:21 +0200)]
input: es_out_timeshift: store commands as different sizes

2 months agoinput: es_out_timeshift: use own aligned memory storage
Francois Cartegnie [Wed, 22 Apr 2020 14:24:56 +0000 (16:24 +0200)]
input: es_out_timeshift: use own aligned memory storage

2 months agoes_out: split controls range
Francois Cartegnie [Wed, 22 Apr 2020 17:53:16 +0000 (19:53 +0200)]
es_out: split controls range

you can't have assert() between priv/public spaces
if the enums can collide

2 months agodemux: adaptive: rely on live offset for edge control
Francois Cartegnie [Mon, 18 May 2020 13:39:59 +0000 (15:39 +0200)]
demux: adaptive: rely on live offset for edge control

fixes start case when min buffering < playlist duration

refs VLCKit/-/issues/374

2 months agodemux: adaptive: use current segment number when available
Francois Cartegnie [Mon, 18 May 2020 15:56:46 +0000 (17:56 +0200)]
demux: adaptive: use current segment number when available

2 months agodemux: adaptive: add ac4 formatnamespace mapping
Francois Cartegnie [Fri, 15 May 2020 08:04:05 +0000 (10:04 +0200)]
demux: adaptive: add ac4 formatnamespace mapping

2 months agoupdate: do not launch the downloaded exe in Winstore builds
Steve Lhomme [Thu, 9 Apr 2020 09:55:16 +0000 (11:55 +0200)]
update: do not launch the downloaded exe in Winstore builds

The API is forbidden.

It could be done with this winrt API:
https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-the-default-app-for-a-file

2 months agocontrib: gcrypt: fix getpid usage in winstore builds
Steve Lhomme [Thu, 30 Apr 2020 13:17:43 +0000 (15:17 +0200)]
contrib: gcrypt: fix getpid usage in winstore builds

2 months agocontrib: gcrypt: use bcrypt rather than wincrypt
Steve Lhomme [Thu, 5 Apr 2018 11:29:40 +0000 (13:29 +0200)]
contrib: gcrypt: use bcrypt rather than wincrypt

2 months agocontrib: libarchive: don't force the Windows version to target
Steve Lhomme [Thu, 2 Apr 2020 13:37:54 +0000 (15:37 +0200)]
contrib: libarchive: don't force the Windows version to target

We may want to build for Win10/UWP via the command-line.

2 months agocontrib: libarchive: fix winrt patches
Steve Lhomme [Thu, 2 Apr 2020 12:58:53 +0000 (14:58 +0200)]
contrib: libarchive: fix winrt patches

2 months agocontrib: libarchive: Fix winrt build
Steve Lhomme [Mon, 9 Apr 2018 07:59:27 +0000 (09:59 +0200)]
contrib: libarchive: Fix winrt build

don't force compilation for Windows XP
don't call DebugBreak() (in debug builds)

2 months agocontrib: libarchive: use the proper define for the internal mode_t
Steve Lhomme [Fri, 27 Mar 2020 15:33:33 +0000 (16:33 +0100)]
contrib: libarchive: use the proper define for the internal mode_t

2 months agocontrib: libarchive: use bcrypt rather than wincrypt
Steve Lhomme [Thu, 5 Apr 2018 12:49:26 +0000 (14:49 +0200)]
contrib: libarchive: use bcrypt rather than wincrypt

2 months agocontrib: flac: update the winstore fixes for 1.3.3
Steve Lhomme [Fri, 3 Apr 2020 11:26:27 +0000 (13:26 +0200)]
contrib: flac: update the winstore fixes for 1.3.3

2 months agocontrib: harfbuzz: fix winstore API detection in mingw64
Steve Lhomme [Fri, 3 Apr 2020 11:10:31 +0000 (13:10 +0200)]
contrib: harfbuzz: fix winstore API detection in mingw64

WINAPI_FAMILY_PC_APP and WINAPI_FAMILY_PHONE_APP are not available but it's OK.

2 months agocontrib: harfbuzz: turn local patches into patches against the harfbuzz git
Steve Lhomme [Mon, 18 May 2020 12:19:24 +0000 (14:19 +0200)]
contrib: harfbuzz: turn local patches into patches against the harfbuzz git

It's easier to apply & rebase patches when updating to a newer version.

2 months agocontrib: taglib: use SetFilePointerEx instead of SetFilePointer
Steve Lhomme [Mon, 18 May 2020 12:12:27 +0000 (14:12 +0200)]
contrib: taglib: use SetFilePointerEx instead of SetFilePointer

It's available on more Win10 versions with UCRT builds and provides the same
features.

2 months agocontrib: taglib: only use APIs in winstore builds
Steve Lhomme [Tue, 28 Apr 2020 10:49:27 +0000 (12:49 +0200)]
contrib: taglib: only use APIs in winstore builds

- CreateFile2 where CreateFileW is used
- GetFileInformationByHandleEx instead of GetFileSize (which is what winstore
  compat did)

2 months agocrystalhd: remove this ancient hardware video decoder module
Steve Lhomme [Thu, 30 Apr 2020 10:00:20 +0000 (12:00 +0200)]
crystalhd: remove this ancient hardware video decoder module

2 months agomodules: remove unneeded signal.h include
Steve Lhomme [Thu, 30 Apr 2020 05:08:49 +0000 (07:08 +0200)]
modules: remove unneeded signal.h include

2 months agowin32: use CreateThread instead of _beginthreadex in winstore builds
Steve Lhomme [Tue, 28 Apr 2020 09:05:19 +0000 (11:05 +0200)]
win32: use CreateThread instead of _beginthreadex in winstore builds

_beginthreadex is forbidden. We already used CreateThread in such builds via
winstorecompat.

Modify the code to avoid casting when not needed.

2 months agocontrib: modplug: Link against libc++ on macOS
David Fuhrmann [Wed, 13 May 2020 17:42:15 +0000 (19:42 +0200)]
contrib: modplug: Link against libc++ on macOS

libstdc++ is not available anymore in modern sdks.

2 months agocontribs: live555: Set CXXFLAGS for macosx
David Fuhrmann [Wed, 29 Apr 2020 19:53:41 +0000 (21:53 +0200)]
contribs: live555: Set CXXFLAGS for macosx

CXXFLAGS are needed to set correct stdlib.

2 months agoconfig: allow 64-bits value in config chains
Rémi Denis-Courmont [Thu, 14 May 2020 15:29:38 +0000 (18:29 +0300)]
config: allow 64-bits value in config chains

This matches the behaviour for command line arguments and for input
item options. This also matches the bug that it might cause signed
overflow if the code expects a 32-bits value.

2 months agovout/opengl: set the correct GLSL shader version for libplacebo
Niklas Haas [Wed, 13 May 2020 20:29:22 +0000 (22:29 +0200)]
vout/opengl: set the correct GLSL shader version for libplacebo

This prevents shader compilation errors when VLC requests old versions
of GLSL, by forwarding the correct GLSL version to the libplacebo shader
generators.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2 months agofourcc: add AC4
Francois Cartegnie [Wed, 22 May 2019 07:27:50 +0000 (09:27 +0200)]
fourcc: add AC4

fourcc is now registered

2 months agodemux: adaptive: fix aligned segments default
Francois Cartegnie [Wed, 13 May 2020 17:33:01 +0000 (19:33 +0200)]
demux: adaptive: fix aligned segments default

2 months agodemux: hls: handle timescale rounding when matching segment
Francois Cartegnie [Thu, 14 May 2020 08:12:36 +0000 (10:12 +0200)]
demux: hls: handle timescale rounding when matching segment

2 months agodemux: adaptive: fix bogus recycling of access
Francois Cartegnie [Wed, 13 May 2020 16:09:09 +0000 (18:09 +0200)]
demux: adaptive: fix bogus recycling of access

refs #24701

2 months agodemux: hls: do proper schedule on update
Francois Cartegnie [Wed, 13 May 2020 15:41:00 +0000 (17:41 +0200)]
demux: hls: do proper schedule on update

non playback point based update now appears
since closer to the edge buffering

reverts 390078318d4f62827a5f185bf922e9b03052a19b

refs #24701

2 months agodemux: hls: set more accurate update time
Francois Cartegnie [Wed, 13 May 2020 15:19:20 +0000 (17:19 +0200)]
demux: hls: set more accurate update time

2 months agodemux: hls: remove double update need check
Francois Cartegnie [Wed, 13 May 2020 15:48:02 +0000 (17:48 +0200)]
demux: hls: remove double update need check

2 months agogitlab-ci: Package macOS sdk archive for nightly builds as well
David Fuhrmann [Thu, 7 May 2020 16:38:46 +0000 (18:38 +0200)]
gitlab-ci: Package macOS sdk archive for nightly builds as well

Restores the same behaviour we had with the old Jenkins for some
time now.

2 months agovaapi: add support for DRM modifiers
Lionel Landwerlin [Sun, 10 May 2020 21:01:07 +0000 (00:01 +0300)]
vaapi: add support for DRM modifiers

DRM modifiers communicate a description of the data layout in the buffers
exported/imported through various API.

On Intel HW this exports tiling information as well as potential compression.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2 months agoconfigure: bump libva dependency to 2.0 (vaapi 1.0)
Lionel Landwerlin [Sun, 10 May 2020 21:01:06 +0000 (00:01 +0300)]
configure: bump libva dependency to 2.0 (vaapi 1.0)

LibVA 2.0 (project version) or VAAPI 1.0 (API version)

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 months agovout: win32: drawable: move the code in video_output/win32
Steve Lhomme [Mon, 11 May 2020 08:48:53 +0000 (10:48 +0200)]
vout: win32: drawable: move the code in video_output/win32

No functional changes.

3 months agovout: win32: drawable: use an internal HWND to detect size changes
Steve Lhomme [Thu, 7 May 2020 12:17:21 +0000 (14:17 +0200)]
vout: win32: drawable: use an internal HWND to detect size changes

In the past the display module was checking if the size of the host HWND
changed via the Manage callback. Now this callback doesn't exist anymore and
the window module is responsible for reporting its size.

In the case of embedded-window we need to read the size of the parent as we
don't get any events telling us it's resized, nor that we should be resized
(since apps using set_hwnd have no way to know the HWND we use internally to
resize it).

3 months agovout: win32: drawable: simplify the known hwnd filling
Steve Lhomme [Thu, 7 May 2020 12:04:26 +0000 (14:04 +0200)]
vout: win32: drawable: simplify the known hwnd filling

No need to reset val to 0/NULL each time.

3 months agovout: win32: drawable: store a HWND in the known hwnd table
Steve Lhomme [Thu, 7 May 2020 12:09:08 +0000 (14:09 +0200)]
vout: win32: drawable: store a HWND in the known hwnd table

No need to do more casts. A HWND is pointer anyway.

3 months agovout: win32: drawable: fix leaking known hwnd table
Steve Lhomme [Thu, 7 May 2020 12:05:51 +0000 (14:05 +0200)]
vout: win32: drawable: fix leaking known hwnd table

When the last hwnd is removed there is only element which holds NULL.

3 months agovout: win32: drawable: move the known hwnd removal in a function
Steve Lhomme [Thu, 7 May 2020 10:22:06 +0000 (12:22 +0200)]
vout: win32: drawable: move the known hwnd removal in a function

No functional changes.

3 months agoContribs: update libarchive
Jean-Baptiste Kempf [Sun, 10 May 2020 15:14:02 +0000 (17:14 +0200)]
Contribs: update libarchive

CVE-2020-9308 and CVE-2019-19221 + a few other crashes that deserve a
CVE...

3 months agonotify: don't depend on any GTK version
Rémi Denis-Courmont [Tue, 5 May 2020 15:48:06 +0000 (18:48 +0300)]
notify: don't depend on any GTK version

If there's one in the process use it. If there's none fallback to
default VLC icon with the old code.

This not only avoids VLC builds depending on GTK, but this should
prevent crashes if GTK 2 is present in the process (e.g. through Qt plugin).

3 months agobluray: Fix potential buffer overflow when reading mount points
David Fuhrmann [Wed, 6 May 2020 18:35:22 +0000 (20:35 +0200)]
bluray: Fix potential buffer overflow when reading mount points

Avoid overflow when more than 128 mount points exist on the system.

3 months agocdda: Add macOS permission check
David Fuhrmann [Wed, 6 May 2020 18:33:10 +0000 (20:33 +0200)]
cdda: Add macOS permission check

Similar to dvdnav and dvdread.

3 months agodvdread: Implement analog access check as in dvdnav
David Fuhrmann [Mon, 4 May 2020 18:07:41 +0000 (20:07 +0200)]
dvdread: Implement analog access check as in dvdnav