vlc.git
2 years agommdevice: skip if volume reset is enabled for now
Rémi Denis-Courmont [Mon, 26 Feb 2018 22:18:26 +0000 (00:18 +0200)]
mmdevice: skip if volume reset is enabled for now

2 years agopicture: fix empty allocation leak
Rémi Denis-Courmont [Mon, 26 Feb 2018 21:32:45 +0000 (23:32 +0200)]
picture: fix empty allocation leak

If the picture has zero planes, pic->p->p_pixels is set to NULL rather
than the allocated (zero bytes) buffer, leading to a potential leak
depending on aligned_alloc() implementation.

2 years agoremove vlc_tls_ClientSessionCreateFD
Francois Cartegnie [Mon, 26 Feb 2018 20:37:17 +0000 (21:37 +0100)]
remove vlc_tls_ClientSessionCreateFD

was only remaining there for previous adaptive code

2 years agovout: decklink: fix build again
Francois Cartegnie [Mon, 26 Feb 2018 20:00:48 +0000 (21:00 +0100)]
vout: decklink: fix build again

2 years agoaccess_demux: increase priority by 300
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:35:53 +0000 (22:35 +0200)]
access_demux: increase priority by 300

For the time being, access_demux modules should have a higher priority
than access modules, so that order is maintained if/when the two
capabilities are merged. The highest access module priority is below
300 as of now.

2 years agov4l2: bump priority to two and one
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
v4l2: bump priority to two and one

We want the regular V4L2 video demuxer to have a higher priority than
the V4L2 radio demuxer, and then both than the V4L2 bitstream access.

2 years agoimem: bump priority to one
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
imem: bump priority to one

This plugin does not need priority since no other plugins have any
alias in common. However, it has also an access submodule, and we want
the access_demux submodule at higher priority for the time being.

2 years agodshow: bump priority to one
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
dshow: bump priority to one

This plugin does not need priority since no other plugins have any
alias in common. However, it has also an access submodule, and we want
the access_demux submodule at higher priority for the time being.

2 years agocdda: drop priority to one
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
cdda: drop priority to one

This plugin does not need priority since no other plugins have any
alias in common. However, it has also an access submodule, and we want
the access_demux submodule at higher priority for the time being.

2 years agovcd: drop priority to zero
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
vcd: drop priority to zero

This plugin does not need priority since no other plugins have any
alias in common.

2 years agonfs: drop priority to zero
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
nfs: drop priority to zero

This plugin does not need priority since no other plugins have any
alias in common.

2 years agocdda: drop priority to zero
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
cdda: drop priority to zero

This plugin does not need priority since no other plugins have any
alias in common.

2 years agooss: drop priority to zero
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
oss: drop priority to zero

This plugin does not need priority since no other plugins have any
alias in common.

2 years agodecklink: drop priority to zero
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
decklink: drop priority to zero

This plugin does not need priority since no other plugins have any
alias in common.

2 years agodc1394: drop priority to zero
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
dc1394: drop priority to zero

This plugin does not need priority since no other plugins have any
alias in common.

2 years agoavcapture: drop priority to zero
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:19:44 +0000 (22:19 +0200)]
avcapture: drop priority to zero

This plugin does not need priority since no other plugins have any
alias in common.

2 years agostream filter: increase priorities
Rémi Denis-Courmont [Mon, 26 Feb 2018 20:11:34 +0000 (22:11 +0200)]
stream filter: increase priorities

This increases the priority of every stream filter with non-zero
priority by 300. The point is to make those priorities higher than any
existing demux priority (to merge the two capabilities later on).

2 years agoBump plugin ABI
Rémi Denis-Courmont [Mon, 26 Feb 2018 19:55:56 +0000 (21:55 +0200)]
Bump plugin ABI

2 years agodemux: make demux_t an alias of stream_t (refs #18504)
Rémi Denis-Courmont [Mon, 26 Feb 2018 19:54:15 +0000 (21:54 +0200)]
demux: make demux_t an alias of stream_t (refs #18504)

2 years agostream: add out and pf_demux (refs #18504)
Rémi Denis-Courmont [Mon, 26 Feb 2018 19:51:50 +0000 (21:51 +0200)]
stream: add out and pf_demux (refs #18504)

2 years agostream: add p_next field (refs #18504)
Rémi Denis-Courmont [Mon, 26 Feb 2018 19:48:49 +0000 (21:48 +0200)]
stream: add p_next field (refs #18504)

2 years agostream filter: provide file path in addition to URL
Rémi Denis-Courmont [Mon, 26 Feb 2018 18:56:55 +0000 (20:56 +0200)]
stream filter: provide file path in addition to URL

2 years agoyadif: fix invalid function pointer conversion
Rémi Denis-Courmont [Mon, 26 Feb 2018 18:46:04 +0000 (20:46 +0200)]
yadif: fix invalid function pointer conversion

2 years agodynamicoverlay: fix memory corruption
Rémi Denis-Courmont [Mon, 26 Feb 2018 18:43:03 +0000 (20:43 +0200)]
dynamicoverlay: fix memory corruption

Font alpha is 8-bits, not 32-bits.

2 years agodynamicoverlay: fix undefined signed overflow
Rémi Denis-Courmont [Mon, 26 Feb 2018 18:42:40 +0000 (20:42 +0200)]
dynamicoverlay: fix undefined signed overflow

2 years agochromaprint: missing cast
Rémi Denis-Courmont [Mon, 26 Feb 2018 18:36:29 +0000 (20:36 +0200)]
chromaprint: missing cast

2 years agots: fix invalid casts
Rémi Denis-Courmont [Mon, 26 Feb 2018 18:34:43 +0000 (20:34 +0200)]
ts: fix invalid casts

2 years agosout: look up index only once
Rémi Denis-Courmont [Mon, 26 Feb 2018 18:23:27 +0000 (20:23 +0200)]
sout: look up index only once

TAB_REMOVE would do a second look-up then call TAB_REMOVE.
Call TAB_REMOVE directly.

2 years agocodec: avcodec: map i422/16 (refs #19684)
Francois Cartegnie [Mon, 26 Feb 2018 18:00:41 +0000 (19:00 +0100)]
codec: avcodec: map i422/16 (refs #19684)

2 years agovfilter: blend: add i422/16
Francois Cartegnie [Mon, 26 Feb 2018 17:53:49 +0000 (18:53 +0100)]
vfilter: blend: add i422/16

2 years agofourcc: add i422/16
Francois Cartegnie [Mon, 26 Feb 2018 17:53:16 +0000 (18:53 +0100)]
fourcc: add i422/16

2 years agoinclude: revector bit ops
Rémi Denis-Courmont [Mon, 26 Feb 2018 16:43:40 +0000 (18:43 +0200)]
include: revector bit ops

2 years agoRename popcount to vlc_popcount
Kamil Rytarowski [Mon, 26 Feb 2018 06:11:48 +0000 (07:11 +0100)]
Rename popcount to vlc_popcount

This removes conflicts with the NetBSD headers and libc.
The conflicts caused fatal build errors.

No functional change intended for other Operating Systems.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2 years agochromecast: fix load in when the state is 'Stopped'
Thomas Guillem [Mon, 26 Feb 2018 16:03:31 +0000 (17:03 +0100)]
chromecast: fix load in when the state is 'Stopped'

2 years agochromecast: avoid too many sout/cc restart when flushing
Thomas Guillem [Mon, 26 Feb 2018 16:02:48 +0000 (17:02 +0100)]
chromecast: avoid too many sout/cc restart when flushing

Wait for all streams being flushed before sending new data.

2 years agodemux: webvtt: release memstream empty alloc
Francois Cartegnie [Mon, 26 Feb 2018 13:34:25 +0000 (14:34 +0100)]
demux: webvtt: release memstream empty alloc

2 years agoQt: convert: merge sout chain as args
Francois Cartegnie [Mon, 26 Feb 2018 12:43:49 +0000 (13:43 +0100)]
Qt: convert: merge sout chain as args

2 years agoQt: use arg syntax in transcoding
Francois Cartegnie [Mon, 26 Feb 2018 12:14:38 +0000 (13:14 +0100)]
Qt: use arg syntax in transcoding

2 years agoQt: escape demuxdump filename (refs #19841)
Francois Cartegnie [Mon, 26 Feb 2018 12:12:10 +0000 (13:12 +0100)]
Qt: escape demuxdump filename (refs #19841)

2 years agoconfigure: Include windows.h before checking the _WIN32_WINNT version
Martin Storsjö [Thu, 14 Dec 2017 21:06:32 +0000 (23:06 +0200)]
configure: Include windows.h before checking the _WIN32_WINNT version

The default value of _WIN32_WINNT isn't something that is built into
the compiler, but is defined by the toolchain headers.

Include windows.h after including ws2tcpip.h/winsock2.h, since those
headers should be included in that particular order.

2 years agopacketizer: hevc: add hevc_get_chroma_luma
Francois Cartegnie [Mon, 26 Feb 2018 10:11:16 +0000 (11:11 +0100)]
packetizer: hevc: add hevc_get_chroma_luma

2 years agocontrib: x265: Patch x265 to skip the resource file
Martin Storsjö [Thu, 14 Dec 2017 10:08:39 +0000 (12:08 +0200)]
contrib: x265: Patch x265 to skip the resource file

CMake uses a static library to pass files to the linker. CMake
does request windres to produce a COFF formatted object file, but
llvm-mingw's windres wrapper currently overrides it and produces
a .res (arch independent) formatted one instead. LLD doesn't support
such files in static libraries.

Just don't bother with the resource file for now, it's irrelevant
from VLC's point of view - it's only used for the executable and
shared library, neither of which are used by VLC.

Passing -DCMAKE_RC_COMPILER=FALSE on the cmake configuration line
sounds like a different workaround, but that doesn't seem to work
though - then we suddenly start getting -fPIC flags to the compiler,
which clang errors out on.

This can be dropped once llvm-mingw doesn't need to force the
windres output into the arch independent format.

2 years agocontrib: live555: Don't try to use $(LD) to create static libraries on MinGW, use...
Martin Storsjö [Mon, 26 Feb 2018 09:31:46 +0000 (11:31 +0200)]
contrib: live555: Don't try to use $(LD) to create static libraries on MinGW, use $(AR)

This fixes building with llvm-mingw.

2 years agocontrib: flac: Don't force __MSVCRT_VERSION__ to a specific (old) version
Martin Storsjö [Thu, 14 Dec 2017 21:42:21 +0000 (23:42 +0200)]
contrib: flac: Don't force __MSVCRT_VERSION__ to a specific (old) version

The forcing of this define was added upstream many years ago, probably
to expose certain features that aren't available by default in the old
mingw.org headers. In mingw-w64, setting __MSVCRT_VERSION__ doesn't
expose much new functionality at all (contrary to in mingw.org), and
the default in mingw-w64 is 0x0700.

Therefore, since we're using mingw-w64 anyway, don't force this version
but just use whatever the toolchain default is, assuming the default
is new enough.

This fixes building with mingw-w64 with the default msvcrt set to
ucrtbase.

2 years agocontrib: postproc: Don't omit adding -DPIC on windows
Martin Storsjö [Mon, 26 Feb 2018 08:37:21 +0000 (10:37 +0200)]
contrib: postproc: Don't omit adding -DPIC on windows

This fixes the earlier patch from 204d674232 to match what is done
in libav/ffmpeg's configure script even closer - even if we skip
adding -fPIC when building for windows, we still need to pass -DPIC
to pick the right form for assembler source.

2 years agofribidi: update for version 1.0
Shaleen Jain [Sun, 25 Feb 2018 13:12:27 +0000 (18:42 +0530)]
fribidi: update for version 1.0

Update functions deprecated in version 1.0 when building with release 1.0 and
above.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2 years agocontrib: pthreads: Don't use x86 inline asm on non-x86 platforms
Martin Storsjö [Wed, 10 Jan 2018 12:54:49 +0000 (14:54 +0200)]
contrib: pthreads: Don't use x86 inline asm on non-x86 platforms

2 years agocontrib: projectM: Don't forcibly add -fPIC when targeting windows
Martin Storsjö [Thu, 14 Dec 2017 07:17:39 +0000 (09:17 +0200)]
contrib: projectM: Don't forcibly add -fPIC when targeting windows

This fixes compilation with clang.

2 years agocontrib: postproc: Don't add -fPIC when targeting windows
Martin Storsjö [Wed, 13 Dec 2017 15:00:41 +0000 (17:00 +0200)]
contrib: postproc: Don't add -fPIC when targeting windows

This roughly matches 3965d404ccd from libav/ffmpeg. With GCC,
adding -fPIC when building for windows (x86_64) results in a warning,
while it is an error with clang.

2 years agocontrib: gnutls: Disable assembly on windows/x86_64 and aarch64 when built with clang
Martin Storsjö [Wed, 13 Dec 2017 14:11:09 +0000 (16:11 +0200)]
contrib: gnutls: Disable assembly on windows/x86_64 and aarch64 when built with clang

Move the check for clang from the qt rules.mak into the toplevel
main.mak.

This fixes building in these configurations.

2 years agocontrib: qt: Use the win32-clang-g++ mkspec when building with for windows with clang
Martin Storsjö [Wed, 21 Feb 2018 11:26:31 +0000 (13:26 +0200)]
contrib: qt: Use the win32-clang-g++ mkspec when building with for windows with clang

Check $(CC) --version to see if it turns out to be clang.

2 years agocontrib: qt: Add patches for building with llvm-mingw
Martin Storsjö [Wed, 13 Dec 2017 14:15:04 +0000 (16:15 +0200)]
contrib: qt: Add patches for building with llvm-mingw

All of them are backports (in Qt 5.11, everything needed for building
with llvm-mingw is upstreamed), with annotations about where they
come from.

To actually build with llvm-mingw, one has to use the mkspec
win32-clang-g++ instead of win32-g++.

2 years agocontrib: pthreads: Fix building with llvm-mingw
Martin Storsjö [Fri, 5 Jan 2018 21:53:37 +0000 (23:53 +0200)]
contrib: pthreads: Fix building with llvm-mingw

This avoids doing things with dlltool that llvm-dlltool doesn't
implement.

I don't see the need of running a second pass with dlltool to
produce an output def file and yet another pass to produce
an import library out of it; just make the linker output the
import library while linking the dll. (If the import library is
to be used by MSVC, there is a point in generating it with dlltool
instead of with ld though. Even then, there's no point in generating
the def file using dlltool though, when it could just be generated by
the linker.)

Remove an inline declaration on a function that can't be inline-only
(static inline).

For non-static inline functions in C, the compiler can choose to
use the inline function itself, or assume that a definition exists
in a different translation unit. In this case, clang seems to
not inline ptw32_cond_check_need_init and creates an undefined
reference to the same function that should be defined in another
translation unit (which doesn't exist).

See https://www.greenend.org.uk/rjk/tech/inline.html for more details
on this.

2 years agocontrib: goom: Fix building for i386 with clang
Martin Storsjö [Fri, 23 Feb 2018 22:14:13 +0000 (00:14 +0200)]
contrib: goom: Fix building for i386 with clang

This is based on a patch from gst-plugins-good (which bundles a copy
of the goom sources), based on a patch from FreeBSD ports.

2 years agocontrib: x264: Fix building for windows on arm
Martin Storsjö [Tue, 19 Dec 2017 09:05:47 +0000 (11:05 +0200)]
contrib: x264: Fix building for windows on arm

This includes a backport of one patch (from original git commit
7b13b31be60, included in the x264 master branch since Dec 24 2017),
and passing the necessary configure parameters for setting up
gas-preprocessor for this configuration.

2 years agocompat: remove no longer used ffsll()
Rémi Denis-Courmont [Sun, 25 Feb 2018 19:39:23 +0000 (21:39 +0200)]
compat: remove no longer used ffsll()

We don't need two ways to count trailing zeroes.

2 years agoopengl: use ctz() instead of ffsll()
Rémi Denis-Courmont [Sun, 25 Feb 2018 19:30:40 +0000 (21:30 +0200)]
opengl: use ctz() instead of ffsll()

When manipulating bit fields, zero-based ctz() is generally simpler
than one-based ffs().

By definition: ffs(x) = x ? (ctz(x) + 1) : 0

2 years agopicture_pool: simplify using ctz()
Rémi Denis-Courmont [Sun, 25 Feb 2018 19:05:19 +0000 (21:05 +0200)]
picture_pool: simplify using ctz()

Same as 09fa628168421b5d8881b72ced9390d84dd58123.

2 years agopicture_pool: fix cancellation handling with lock
Rémi Denis-Courmont [Sun, 25 Feb 2018 19:06:40 +0000 (21:06 +0200)]
picture_pool: fix cancellation handling with lock

If there is a deprecated lock callback, the mutex might be released
and the cancellation flag much be rechecked.

Conversely, if the pool is empty, then there is no point in checking
the flag: allocation will anyway fail immediately.

2 years agopicture_pool: simplify using ctz()
Rémi Denis-Courmont [Sun, 25 Feb 2018 19:05:19 +0000 (21:05 +0200)]
picture_pool: simplify using ctz()

Zero-based value is easier than one-based in this context.

2 years agocontrib: upnp: Improve and generalize a patch for handling inet_pton
Martin Storsjö [Sat, 24 Feb 2018 22:02:47 +0000 (00:02 +0200)]
contrib: upnp: Improve and generalize a patch for handling inet_pton

libupnp locally overrides the version of _WIN32_WINNT via
configure.ac and autoconfig.h (which is disabled by a vlc contrib
patch when targeting winrt though).

Make sure that autoconfig.h is included everywhere necessary, to
show/hide the relevant parts of winsock headers depending on the
chosen version of _WIN32_WINNT (either default or overridden).

This avoids including the system declarations of these functions if
the default target is >= vista but the build tries to override it
to a lower version.

On the other hand, if the override of _WIN32_WINNT is removed (as
when targeting winrt) and the default is >= vista, skip the local
version of inet_pton.

This should have the same effect as the previous patch, but
evaluated by the preprocessor instead of hardcoding commenting out
of certain source files.

2 years agoavcodec: map MagicYUV codec id
Jean-Baptiste Kempf [Sat, 24 Feb 2018 17:50:43 +0000 (18:50 +0100)]
avcodec: map MagicYUV codec id

2 years agoFourCC for MagicYUV
Jean-Baptiste Kempf [Sat, 24 Feb 2018 17:49:47 +0000 (18:49 +0100)]
FourCC for MagicYUV

2 years agod3d11va: do not use the external if there's not enough pictures
Steve Lhomme [Sat, 24 Feb 2018 12:46:53 +0000 (13:46 +0100)]
d3d11va: do not use the external if there's not enough pictures

Do the detection earlier and avoid fetching pictures from the pool for nothing.

2 years agod3d11_fmt: simplify the nvidia check
Steve Lhomme [Sat, 24 Feb 2018 12:41:30 +0000 (13:41 +0100)]
d3d11_fmt: simplify the nvidia check

2 years agodummy vout: fix sign warning
Rémi Denis-Courmont [Sat, 24 Feb 2018 07:57:45 +0000 (09:57 +0200)]
dummy vout: fix sign warning

2 years agoinclude: fix clz on pure ISO C compilers
Rémi Denis-Courmont [Sat, 24 Feb 2018 07:53:54 +0000 (09:53 +0200)]
include: fix clz on pure ISO C compilers

2 years agocontrib: ffmpeg: enable bsf=vp9_superframe
Thomas Guillem [Fri, 23 Feb 2018 12:39:34 +0000 (13:39 +0100)]
contrib: ffmpeg: enable bsf=vp9_superframe

This is used to mux VP9 inside webm/mkv

2 years agodemux: avi: fix fpe (#19688)
Francois Cartegnie [Fri, 23 Feb 2018 17:48:47 +0000 (18:48 +0100)]
demux: avi: fix fpe (#19688)

2 years agoqt: remove unused parameter
Rémi Denis-Courmont [Fri, 23 Feb 2018 17:18:32 +0000 (19:18 +0200)]
qt: remove unused parameter

2 years agoRevert "input: use the original demux for slave synchronisation"
Thomas Guillem [Fri, 23 Feb 2018 16:54:41 +0000 (17:54 +0100)]
Revert "input: use the original demux for slave synchronisation"

This reverts commit 2a8dda4c43b8967b5d53ee57a4de7f6aa99cff29.A

cf. 2e3120ad713190473134af431db78fbe9b25e033

2 years agochromecast: disable SPU
Thomas Guillem [Fri, 23 Feb 2018 17:12:29 +0000 (18:12 +0100)]
chromecast: disable SPU

cf. comment

2 years agodemux: extend demux_FilterChainNew() documentation
Rémi Denis-Courmont [Fri, 23 Feb 2018 17:01:58 +0000 (19:01 +0200)]
demux: extend demux_FilterChainNew() documentation

2 years agochromecast: fix typo in msg logs
Thomas Guillem [Fri, 23 Feb 2018 16:43:18 +0000 (17:43 +0100)]
chromecast: fix typo in msg logs

2 years agoQt: fix drawing of preview (#18109)
Francois Cartegnie [Fri, 23 Feb 2018 16:15:03 +0000 (17:15 +0100)]
Qt: fix drawing of preview (#18109)

2 years agomediacodec: don't override sar if already correct
Thomas Guillem [Fri, 23 Feb 2018 16:08:13 +0000 (17:08 +0100)]
mediacodec: don't override sar if already correct

2 years agochromecast: add SPU blending support
Thomas Guillem [Thu, 1 Feb 2018 12:42:14 +0000 (13:42 +0100)]
chromecast: add SPU blending support

2 years agoqt: always enable subtitle selection menu
Thomas Guillem [Fri, 23 Feb 2018 14:18:09 +0000 (15:18 +0100)]
qt: always enable subtitle selection menu

This was incoherent with audio/video selection menus. Indeed, audio/video
selection menus are always visible (regardless of vout/aout state).

This allows users to change the spu track when using a sout (and a renderer).

2 years agoinput: use the original demux for slave synchronisation
Thomas Guillem [Fri, 23 Feb 2018 13:47:47 +0000 (14:47 +0100)]
input: use the original demux for slave synchronisation

When using a renderer, the filtered demux will report the time currently
displayed by the renderer. If slaves synchronize to this time, SPU or other ES
tracks will always come too late. To fix this issue, we fetch the time on the
original demux (that will report the time being buffered).

This could be removed in VLC 4.0 in favor of a new demux control, like
DEMUX_GET_BUFFERED_TIME.

2 years agodemux: ts: reject ffmpeg/libav default SDT
Francois Cartegnie [Fri, 23 Feb 2018 10:43:29 +0000 (11:43 +0100)]
demux: ts: reject ffmpeg/libav default SDT

2 years agochromecast: fix webm support
Thomas Guillem [Fri, 23 Feb 2018 12:36:29 +0000 (13:36 +0100)]
chromecast: fix webm support

VP9 and OPUS are webm. Also configure the muxer for webm.

2 years agopacketizer: avparser: set keyframe flag
Thomas Guillem [Fri, 23 Feb 2018 12:35:31 +0000 (13:35 +0100)]
packetizer: avparser: set keyframe flag

2 years agomacosx: Display icons depending on renderer capabilities
Marvin Scholz [Fri, 23 Feb 2018 12:17:19 +0000 (13:17 +0100)]
macosx: Display icons depending on renderer capabilities

2 years agomacosx: Remove a SDK 10.11 preprocessor check
Marvin Scholz [Fri, 23 Feb 2018 12:11:05 +0000 (13:11 +0100)]
macosx: Remove a SDK 10.11 preprocessor check

2 years agoservice_discovery/bonjour: Parse Chromecast capabilities
Marvin Scholz [Fri, 23 Feb 2018 11:59:16 +0000 (12:59 +0100)]
service_discovery/bonjour: Parse Chromecast capabilities

Add support for correctly parsing the Chromecast capability flags and
correctly set VLC_RENDERER_CAN_VIDEO/AUDIO based on those.

2 years agochromecast: show perfs dialog only one time (if accepted)
Thomas Guillem [Fri, 23 Feb 2018 10:52:43 +0000 (11:52 +0100)]
chromecast: show perfs dialog only one time (if accepted)

This fixes the dialog reappearing after a seek.

2 years agoaudiotrack: fix wrong init parameter
Thomas Guillem [Fri, 23 Feb 2018 10:35:17 +0000 (11:35 +0100)]
audiotrack: fix wrong init parameter

My bad, just changed in last minute the int to int64_t instead of using jint.

2 years agodemux:mkv: fix i_last_dts mtime_t init
Steve Lhomme [Fri, 23 Feb 2018 09:32:13 +0000 (10:32 +0100)]
demux:mkv: fix i_last_dts mtime_t init

2 years agodemux:mkv: fix the position displayed for ordered chapters
Steve Lhomme [Fri, 23 Feb 2018 08:51:51 +0000 (09:51 +0100)]
demux:mkv: fix the position displayed for ordered chapters

2 years agodemux:mkv: fix the PCR for ordered chapters
Steve Lhomme [Fri, 23 Feb 2018 08:43:45 +0000 (09:43 +0100)]
demux:mkv: fix the PCR for ordered chapters

Fixes #19101

2 years agodemux:mkv: explicitly turn chapter timestamps into mtime_t values
Steve Lhomme [Fri, 23 Feb 2018 08:30:17 +0000 (09:30 +0100)]
demux:mkv: explicitly turn chapter timestamps into mtime_t values

2 years agodemux:mkv: prevent a crash with multiple edition files
Steve Lhomme [Thu, 22 Feb 2018 16:53:00 +0000 (17:53 +0100)]
demux:mkv: prevent a crash with multiple edition files

2 years agodemux:mkv: log the tag target type even if we don't use it
Steve Lhomme [Thu, 22 Feb 2018 16:52:39 +0000 (17:52 +0100)]
demux:mkv: log the tag target type even if we don't use it

2 years agoaudiotrack: add support for audio session id
Alexandre Janniaux [Thu, 22 Feb 2018 13:42:02 +0000 (14:42 +0100)]
audiotrack: add support for audio session id

Add a module variable to store an audio session id and use it when creating new
AudioTrack. This session id is generated by AudioManager.getAudioSessionId() in
the Android-side. This allows LibVLC users to broadcast intent allowing
external application to plug on the audio output and apply effect, for instance
an external equalizer.

See also android.media.audiofx.AudioEffect.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2 years agomicrodns: renderer: fix no-video option
Thomas Guillem [Fri, 23 Feb 2018 07:55:34 +0000 (08:55 +0100)]
microdns: renderer: fix no-video option

2 years agochromecast: clean up variables
Thomas Guillem [Fri, 23 Feb 2018 07:41:24 +0000 (08:41 +0100)]
chromecast: clean up variables

 - Hide "video" option. This option should only be set by the core (via the
   renderer item). If a user doesn't want video, he could disable the video
   track now.

 - Remove mux/mime options: this code has only been tested for the default
   mime/mux, there is no point of changing it.

 - Remove translations for privates options.

This make the chromecast advanced preferences more understandable.

2 years agomacosx: Save/share time remaining state in fullscreen controller
Marvin Scholz [Thu, 22 Feb 2018 21:41:45 +0000 (22:41 +0100)]
macosx: Save/share time remaining state in fullscreen controller

There was no identifier set for the time remaining label in the
fullscreen controller, this sets one to ensure the state is saved
correctly. Additionally this is the same identifier as the one in
the main window label, so make sure the state is shared between those.

Fix #19813

2 years agodemux: subtitle: fix <= first sub seek regression
Francois Cartegnie [Thu, 22 Feb 2018 21:13:00 +0000 (22:13 +0100)]
demux: subtitle: fix <= first sub seek regression

2 years agoconfigure: test for newlocale() separate from uselocale()
Rémi Denis-Courmont [Thu, 22 Feb 2018 19:51:05 +0000 (21:51 +0200)]
configure: test for newlocale() separate from uselocale()

As NetBSD only implements a barely sensical subset of the locale_t API.

2 years agocompat: remove shadowing variable
Rémi Denis-Courmont [Thu, 22 Feb 2018 19:50:09 +0000 (21:50 +0200)]
compat: remove shadowing variable