vlc.git
12 months agoconfigure: Make the new value of _WIN32_WINNT available to configure tests
Martin Storsjö [Wed, 11 Jul 2018 19:24:06 +0000 (22:24 +0300)]
configure: Make the new value of _WIN32_WINNT available to configure tests

Definitions from AH_TOP aren't included in the configure checks.

This was the original intent of e807c8e91.

This makes sure configure checks and actual compilation are run
with the same version defined.

12 months agoSRT: force the C++ linking for the srt modules
Jean-Baptiste Kempf [Wed, 11 Jul 2018 20:44:30 +0000 (22:44 +0200)]
SRT: force the C++ linking for the srt modules

12 months agoContribs: srt, don't link to pthreadGC2 on Mingw
Jean-Baptiste Kempf [Wed, 11 Jul 2018 20:44:09 +0000 (22:44 +0200)]
Contribs: srt, don't link to pthreadGC2 on Mingw

12 months agoconfigure: Don't force _WIN32_WINNT to 0x0601 if it is set to a higher version
Martin Storsjö [Wed, 11 Jul 2018 19:24:06 +0000 (22:24 +0300)]
configure: Don't force _WIN32_WINNT to 0x0601 if it is set to a higher version

Since e807c8e91, we're explicitly unconditionally defining _WIN32_WINNT,
regardless if it was set before or not.

If it was set before (e.g. on the command line), to a higher version,
we should honor that.

This is cruicial for WinRT building, where _WIN32_WINNT is set to Windows
8 or higher on the command line.

12 months agoextras: tools: Patch cmake to improve support for GCC/Clang targeting WindowsStore
Martin Storsjö [Sun, 1 Jul 2018 20:22:44 +0000 (23:22 +0300)]
extras: tools: Patch cmake to improve support for GCC/Clang targeting WindowsStore

This patch exists in upstream cmake in the master branch, and probably
will be part of the next release after 3.12 (3.11 is currently the
latest release).

This is necessary if building for WindowsStore with clang.

12 months agowin32: don't force-activate mpc library
Jean-Baptiste Kempf [Wed, 11 Jul 2018 17:36:20 +0000 (19:36 +0200)]
win32: don't force-activate mpc library

12 months agoMPC: relicense to LGPL
Jean-Baptiste Kempf [Wed, 11 Jul 2018 17:35:50 +0000 (19:35 +0200)]
MPC: relicense to LGPL

12 months agoRevert "Port to new libmpcdec API"
Jean-Baptiste Kempf [Wed, 11 Jul 2018 17:32:20 +0000 (19:32 +0200)]
Revert "Port to new libmpcdec API"

This reverts commit 87cb4e591ac075c7fabc395cf997e0b261296007.

12 months agoRemove Real demuxer plugin
Jean-Baptiste Kempf [Wed, 11 Jul 2018 17:15:59 +0000 (19:15 +0200)]
Remove Real demuxer plugin

Please write a new one in Rust!

12 months agoFix MODULES_LIST for smbc renaming
Jean-Baptiste Kempf [Wed, 11 Jul 2018 16:55:43 +0000 (18:55 +0200)]
Fix MODULES_LIST for smbc renaming

12 months agoRemove RealRTSP plugin
Jean-Baptiste Kempf [Wed, 11 Jul 2018 16:49:52 +0000 (18:49 +0200)]
Remove RealRTSP plugin

Move to 21st century!

12 months agoRemove old logger interface, deprecated for years
Jean-Baptiste Kempf [Wed, 11 Jul 2018 16:14:10 +0000 (18:14 +0200)]
Remove old logger interface, deprecated for years

12 months agosout:sap: explicitly cast to unsigned the sa_family before printing it
Steve Lhomme [Wed, 11 Jul 2018 16:14:59 +0000 (18:14 +0200)]
sout:sap: explicitly cast to unsigned the sa_family before printing it

12 months agoDshow: relicense to LGPL
Jean-Baptiste Kempf [Wed, 11 Jul 2018 16:03:58 +0000 (18:03 +0200)]
Dshow: relicense to LGPL

I reverted the 2 commits from Manol Manolov.
This probably breaks some features, though....

12 months agoRevert "Add frequency and video standard options in dshow"
Jean-Baptiste Kempf [Wed, 11 Jul 2018 15:47:47 +0000 (17:47 +0200)]
Revert "Add frequency and video standard options in dshow"

This reverts commit 5af94ab9f6696cdf3caa48c5f3aeaa7e12842faf.

12 months agoRevert "dshow: cosmetics replace "dshow-" with CFG_PREFIX in the whole file."
Jean-Baptiste Kempf [Wed, 11 Jul 2018 15:41:52 +0000 (17:41 +0200)]
Revert "dshow: cosmetics replace "dshow-" with CFG_PREFIX in the whole file."

This reverts commit 19263ccaa05ee9fee50d13671e1c6e5dff1fdca4.

12 months agoinput: remove now unused input_CreateAndStart function
Thomas Guillem [Fri, 6 Jul 2018 08:16:59 +0000 (10:16 +0200)]
input: remove now unused input_CreateAndStart function

12 months agopodcast: use its own input thread helper
Thomas Guillem [Fri, 6 Jul 2018 08:16:47 +0000 (10:16 +0200)]
podcast: use its own input thread helper

This module need a heavy rewrite: lot of missing check of returns functions.

12 months agoinput: remove useless event
Thomas Guillem [Fri, 6 Jul 2018 08:02:14 +0000 (10:02 +0200)]
input: remove useless event

Event sent from the Create() function, and therefore, can't be listened by
anything.

12 months agodemux: ts: remove useless initialization
Zhao Zhili [Fri, 1 Jun 2018 09:55:54 +0000 (17:55 +0800)]
demux: ts: remove useless initialization

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 months agotext_style: fix overflow in vlc_html_color
Salah-Eddin Shaban [Tue, 3 Jul 2018 22:19:50 +0000 (01:19 +0300)]
text_style: fix overflow in vlc_html_color

This was happening on Windows for color values above #7FFFFFFF

fixes #19974

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 months agoDefine C++ types in namespaces
Romain Vimont [Mon, 11 Jun 2018 11:58:52 +0000 (13:58 +0200)]
Define C++ types in namespaces

In order to respect ODR, in C++ code, declare *_sys_t types in a
separate namespace, either unnamed if it's used only in one translation
unit, or named otherwise.

The GUI modules qt and skins2 are left unchanged for now.

See #17078 and #18033

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 months agosout:sap: the sa_family is a short unsigned integer
Steve Lhomme [Wed, 11 Jul 2018 13:32:13 +0000 (15:32 +0200)]
sout:sap: the sa_family is a short unsigned integer

12 months agohttpd: the protocol version is stored as a uint8_t
Steve Lhomme [Wed, 11 Jul 2018 13:31:36 +0000 (15:31 +0200)]
httpd: the protocol version is stored as a uint8_t

12 months agoimage: the lostcount is an unsigned
Steve Lhomme [Wed, 11 Jul 2018 13:30:11 +0000 (15:30 +0200)]
image: the lostcount is an unsigned

12 months agovideo_output: print the dimensions as the unsigned integers that they are
Steve Lhomme [Wed, 11 Jul 2018 13:32:51 +0000 (15:32 +0200)]
video_output: print the dimensions as the unsigned integers that they are

12 months agoes_format: print the picture dimensions as the unsigned they are
Steve Lhomme [Wed, 11 Jul 2018 13:29:42 +0000 (15:29 +0200)]
es_format: print the picture dimensions as the unsigned they are

12 months agoes_out: printf the MaxCLL and MaxFALL as the uint16_t values that they are
Steve Lhomme [Wed, 11 Jul 2018 13:27:23 +0000 (15:27 +0200)]
es_out: printf the MaxCLL and MaxFALL as the uint16_t values that they are

12 months agoaudio_output: print the rate as an unsigned that it is
Steve Lhomme [Wed, 11 Jul 2018 13:26:08 +0000 (15:26 +0200)]
audio_output: print the rate as an unsigned that it is

12 months agovout_wrapper: the amount of pictures is unsigned
Steve Lhomme [Wed, 11 Jul 2018 13:25:23 +0000 (15:25 +0200)]
vout_wrapper: the amount of pictures is unsigned

12 months agokeystore: print the casted uint16_t port as a 16 bits unsigned
Steve Lhomme [Wed, 11 Jul 2018 13:31:01 +0000 (15:31 +0200)]
keystore: print the casted uint16_t port as a 16 bits unsigned

12 months agonetwork: print ports as unsigned
Steve Lhomme [Wed, 11 Jul 2018 13:24:42 +0000 (15:24 +0200)]
network: print ports as unsigned

12 months agoflaschen: the port is constant
Steve Lhomme [Wed, 11 Jul 2018 13:21:17 +0000 (15:21 +0200)]
flaschen: the port is constant

12 months agovlc-thumb: no need to define seconds in floating points
Steve Lhomme [Wed, 11 Jul 2018 13:20:34 +0000 (15:20 +0200)]
vlc-thumb: no need to define seconds in floating points

12 months agobin:override: fix unsigned format modifier
Steve Lhomme [Wed, 11 Jul 2018 13:20:03 +0000 (15:20 +0200)]
bin:override: fix unsigned format modifier

12 months agonetwork: net_ConnectDgram() doesn't accept a negative port
Steve Lhomme [Wed, 11 Jul 2018 13:00:06 +0000 (15:00 +0200)]
network: net_ConnectDgram() doesn't accept a negative port

vlc_getaddrinfo() takes an unsigned port anyway

12 months agonetwork: net_OpenDgram() doesn't accept a negative ports
Steve Lhomme [Wed, 11 Jul 2018 12:55:34 +0000 (14:55 +0200)]
network: net_OpenDgram() doesn't accept a negative ports

vlc_getaddrinfo() takes an unsigned port anyway

12 months agonetwork: net_Listen() doesn't accept a negative port
Steve Lhomme [Wed, 11 Jul 2018 12:48:56 +0000 (14:48 +0200)]
network: net_Listen() doesn't accept a negative port

12 months agomediacodec: separate configure behaviour from start
Alexandre Janniaux [Mon, 9 Jul 2018 16:30:09 +0000 (18:30 +0200)]
mediacodec: separate configure behaviour from start

start was creating the codec, configuring it and eventually starting it
in the end. Splitting this behaviour into configure + start allows code
sharing with mediacodec encoder.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 months agomediacodec: rename configure into prepare
Alexandre Janniaux [Mon, 9 Jul 2018 16:30:08 +0000 (18:30 +0200)]
mediacodec: rename configure into prepare

mc_api.configure only try to get configuration option but doesn't
actually neither create nor configure the codec.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 months agopacketizer: hevc: infer pic_output flag
Francois Cartegnie [Wed, 11 Jul 2018 10:01:12 +0000 (12:01 +0200)]
packetizer: hevc: infer pic_output flag

12 months agolive555: set dts on VP8
Francois Cartegnie [Wed, 11 Jul 2018 07:53:36 +0000 (09:53 +0200)]
live555: set dts on VP8

12 months agosout: be more resilient with broken streams
Francois Cartegnie [Tue, 10 Jul 2018 14:22:33 +0000 (16:22 +0200)]
sout: be more resilient with broken streams

12 months agopacketizer: h264: try to set dts without bframes
Francois Cartegnie [Tue, 10 Jul 2018 13:26:12 +0000 (15:26 +0200)]
packetizer: h264: try to set dts without bframes

12 months agopacketizer/dts_header: fix wrong usage of swab
Thomas Guillem [Wed, 11 Jul 2018 12:10:46 +0000 (14:10 +0200)]
packetizer/dts_header: fix wrong usage of swab

Pointer should not overlap.

12 months agovout/caopengllayer: Remove unused variable
Marvin Scholz [Wed, 11 Jul 2018 11:49:45 +0000 (13:49 +0200)]
vout/caopengllayer: Remove unused variable

12 months agowasapi: fix passthrough with DTS WAV
Thomas Guillem [Wed, 11 Jul 2018 11:17:30 +0000 (13:17 +0200)]
wasapi: fix passthrough with DTS WAV

12 months agoconverter/tospdif: convert DTS 14bit to DTS 16bit
Thomas Guillem [Wed, 11 Jul 2018 11:01:40 +0000 (13:01 +0200)]
converter/tospdif: convert DTS 14bit to DTS 16bit

DTS inside WAV (@44.1kHZ) use 14bits words and have a fsize of 4096 bytes for
1024 samples. This means there is no room to put the IEC61937 header (IEC frame
size = 4096 = fsize = 1024 samples x 4).

Before this commit, we sent the IEC61937 frame without the header, this worked
only for some receivers.

This commit converts the 14bit sample to 16bit in order to have room for the
IEC61937 header. The new fsize is 4096*14/16 = 3584, so there is room for the 8
bytes header (plus 0 padding until 4096).

12 months agopacketizer/dts_header: add an helper that converts 14bit words to 16bit
Thomas Guillem [Tue, 10 Jul 2018 16:37:30 +0000 (18:37 +0200)]
packetizer/dts_header: add an helper that converts 14bit words to 16bit

cf. https://wiki.multimedia.cx/index.php/DTS#14-bit_words

12 months agoitml: always use p_sys as an uintptr_t
Steve Lhomme [Wed, 11 Jul 2018 09:12:56 +0000 (11:12 +0200)]
itml: always use p_sys as an uintptr_t

12 months agoblock: only do the size test when it's meaningful
Steve Lhomme [Wed, 11 Jul 2018 06:59:13 +0000 (08:59 +0200)]
block: only do the size test when it's meaningful

If uintmax_t has the same size as size_t then it cannot be bigger than SIZE_MAX
ever.

12 months agovout:drawable: fix the format modifier for a uintptr_t
Steve Lhomme [Wed, 11 Jul 2018 08:38:24 +0000 (10:38 +0200)]
vout:drawable: fix the format modifier for a uintptr_t

12 months agoitml: fix the printf modifier for the pointer value
Steve Lhomme [Wed, 11 Jul 2018 08:37:26 +0000 (10:37 +0200)]
itml: fix the printf modifier for the pointer value

12 months agotest:demux-run: use %PRIuMAX instead of %ju
Steve Lhomme [Wed, 11 Jul 2018 07:30:12 +0000 (09:30 +0200)]
test:demux-run: use %PRIuMAX instead of %ju

12 months agoaccess:http: change the scanf/printf format modifiers when using uintmax_t
Steve Lhomme [Wed, 11 Jul 2018 07:22:23 +0000 (09:22 +0200)]
access:http: change the scanf/printf format modifiers when using uintmax_t

PRI(uxd)MAX for printf and SCN(uxd)MAX for scanf are supported in C99 and even
in MSVC 2013, unlike the j modifier.

12 months agocontrib: Update SRT to 1.3.1
Olivier Crête [Tue, 10 Jul 2018 18:31:38 +0000 (14:31 -0400)]
contrib: Update SRT to 1.3.1

Almost the same as the previous one but squashing two patches which should have been and improving the inet_ntop() removing patch.

Skipping 1.3.0 as it was a bad version. Also removed all
custom patches are they don't seem to be required anymore, but
added new ones to make it build with MingW.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 months agoconfigure: Fix description of font family options
Marvin Scholz [Sun, 8 Jul 2018 00:10:09 +0000 (02:10 +0200)]
configure: Fix description of font family options

These options do not take the path but the name of the font.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
12 months agodirectsound: fix crash when guid is NULL
Thomas Guillem [Tue, 10 Jul 2018 12:24:32 +0000 (14:24 +0200)]
directsound: fix crash when guid is NULL

This happened, very rarely, when the user explicitly selected the mmdevice aout
with the directsound backend and with a specific volume start level.

Fixes CD d75ffdd0-0354-411f-9c6a-339d30c5031a

12 months agoopengl: don't use PBO buffers before OpenGL 3.0
Thomas Guillem [Mon, 9 Jul 2018 11:43:50 +0000 (13:43 +0200)]
opengl: don't use PBO buffers before OpenGL 3.0

The version was checked for persistent mapped buffers, but it's also needed for
PBO usage.

cf. comments

12 months agoupnp: Ensure services_discovery_sys_t destructor will be called
Hugo Beauzée-Luyssen [Mon, 9 Jul 2018 16:08:09 +0000 (18:08 +0200)]
upnp: Ensure services_discovery_sys_t destructor will be called

12 months agotranscode: send blocks on error
Francois Cartegnie [Sun, 8 Jul 2018 12:27:01 +0000 (14:27 +0200)]
transcode: send blocks on error

12 months agotranscode: spu: evaluate overlay using codec
Francois Cartegnie [Fri, 6 Jul 2018 12:50:00 +0000 (14:50 +0200)]
transcode: spu: evaluate overlay using codec

12 months agotranscode: video: use local master condition instead of global boolean
Francois Cartegnie [Fri, 6 Jul 2018 11:18:40 +0000 (13:18 +0200)]
transcode: video: use local master condition instead of global boolean

12 months agotranscode: reference enc/filter config as id members
Francois Cartegnie [Thu, 5 Jul 2018 13:32:28 +0000 (15:32 +0200)]
transcode: reference enc/filter config as id members

12 months agotranscode: rework passing subpictures
Francois Cartegnie [Thu, 5 Jul 2018 09:40:20 +0000 (11:40 +0200)]
transcode: rework passing subpictures

12 months agotranscode: rework video filtering
Francois Cartegnie [Wed, 4 Jul 2018 18:17:52 +0000 (20:17 +0200)]
transcode: rework video filtering

12 months agotranscode: read from decoder fmtout copy
Francois Cartegnie [Tue, 3 Jul 2018 16:30:42 +0000 (18:30 +0200)]
transcode: read from decoder fmtout copy

12 months agotranscode: spu: refactor config
Francois Cartegnie [Mon, 2 Jul 2018 15:13:29 +0000 (17:13 +0200)]
transcode: spu: refactor config

12 months agotranscode: video: move blender to id
Francois Cartegnie [Mon, 2 Jul 2018 13:50:33 +0000 (15:50 +0200)]
transcode: video: move blender to id

12 months agotranscode: spu: refactor spu open/close
Francois Cartegnie [Mon, 2 Jul 2018 13:16:34 +0000 (15:16 +0200)]
transcode: spu: refactor spu open/close

12 months agotranscode: audio: use same object in destructor
Francois Cartegnie [Wed, 4 Jul 2018 20:24:45 +0000 (22:24 +0200)]
transcode: audio: use same object in destructor

12 months agotranscode: audio: use helper to compare format
Francois Cartegnie [Wed, 4 Jul 2018 20:24:21 +0000 (22:24 +0200)]
transcode: audio: use helper to compare format

12 months agotranscode: audio: refactor encoder and filters config
Francois Cartegnie [Sun, 1 Jul 2018 14:21:18 +0000 (16:21 +0200)]
transcode: audio: refactor encoder and filters config

12 months agotranscode: audio: move id out of filters init
Francois Cartegnie [Sun, 1 Jul 2018 13:57:39 +0000 (15:57 +0200)]
transcode: audio: move id out of filters init

12 months agotranscode: audio: remove id from configuration
Francois Cartegnie [Sun, 1 Jul 2018 13:52:26 +0000 (15:52 +0200)]
transcode: audio: remove id from configuration

12 months agotranscode: video: update format from pictures only
Francois Cartegnie [Fri, 29 Jun 2018 18:07:44 +0000 (20:07 +0200)]
transcode: video: update format from pictures only

12 months agotranscode: video: set colorspace on configuration
Francois Cartegnie [Mon, 2 Jul 2018 12:02:31 +0000 (14:02 +0200)]
transcode: video: set colorspace on configuration

12 months agotranscode: spu: fix dequeing on error
Francois Cartegnie [Wed, 27 Jun 2018 16:06:45 +0000 (18:06 +0200)]
transcode: spu: fix dequeing on error

12 months agotranscode: audio: fix dequeing on error
Francois Cartegnie [Wed, 27 Jun 2018 16:04:56 +0000 (18:04 +0200)]
transcode: audio: fix dequeing on error

12 months agotranscode: video: fix leak with threads
Francois Cartegnie [Wed, 4 Jul 2018 20:39:54 +0000 (22:39 +0200)]
transcode: video: fix leak with threads

12 months agotranscode: video: fix dequeing on error
Francois Cartegnie [Wed, 27 Jun 2018 16:03:03 +0000 (18:03 +0200)]
transcode: video: fix dequeing on error

12 months agotranscode: refactor audio
Francois Cartegnie [Tue, 26 Jun 2018 21:20:18 +0000 (23:20 +0200)]
transcode: refactor audio

12 months agotranscode: audio: use ARRAY_SIZE
Francois Cartegnie [Tue, 26 Jun 2018 13:56:39 +0000 (15:56 +0200)]
transcode: audio: use ARRAY_SIZE

12 months agotranscode: audio: use aliases in audio enc init
Francois Cartegnie [Tue, 26 Jun 2018 13:55:00 +0000 (15:55 +0200)]
transcode: audio: use aliases in audio enc init

12 months agotranscode: remove id reference from video configure
Francois Cartegnie [Mon, 25 Jun 2018 17:00:45 +0000 (19:00 +0200)]
transcode: remove id reference from video configure

12 months agotranscode: refactor video encoder and filters config
Francois Cartegnie [Mon, 25 Jun 2018 15:20:37 +0000 (17:20 +0200)]
transcode: refactor video encoder and filters config

12 months agotranscode: video: add threads integer range
Francois Cartegnie [Mon, 25 Jun 2018 13:46:45 +0000 (15:46 +0200)]
transcode: video: add threads integer range

12 months agotranscode: video: move transcoding
Francois Cartegnie [Sun, 24 Jun 2018 15:32:07 +0000 (17:32 +0200)]
transcode: video: move transcoding

12 months agotranscode: refactor format change/encoder start
Francois Cartegnie [Sun, 24 Jun 2018 14:31:06 +0000 (16:31 +0200)]
transcode: refactor format change/encoder start

12 months agotranscode: reorder encoder closing
Francois Cartegnie [Sun, 24 Jun 2018 14:02:45 +0000 (16:02 +0200)]
transcode: reorder encoder closing

12 months agotranscode: refactor video encoder setup/testing
Francois Cartegnie [Fri, 22 Jun 2018 09:16:27 +0000 (11:16 +0200)]
transcode: refactor video encoder setup/testing

12 months agotranscode: video: rename ambigous video_output_format
Francois Cartegnie [Tue, 3 Jul 2018 12:48:36 +0000 (14:48 +0200)]
transcode: video: rename ambigous video_output_format

12 months agotranscode: rename ambigous var
Francois Cartegnie [Thu, 21 Jun 2018 19:49:52 +0000 (21:49 +0200)]
transcode: rename ambigous var

12 months agotranscode: remove p_stream ref
Francois Cartegnie [Thu, 21 Jun 2018 19:46:48 +0000 (21:46 +0200)]
transcode: remove p_stream ref

12 months agotranscode: video: rework encoder init
Francois Cartegnie [Thu, 21 Jun 2018 19:08:19 +0000 (21:08 +0200)]
transcode: video: rework encoder init

12 months agotranscode: refactor video size
Francois Cartegnie [Thu, 21 Jun 2018 14:12:31 +0000 (16:12 +0200)]
transcode: refactor video size

12 months agotranscode: refactor video fps
Francois Cartegnie [Thu, 21 Jun 2018 13:08:13 +0000 (15:08 +0200)]
transcode: refactor video fps

12 months agotranscode: use aliases in video init
Francois Cartegnie [Thu, 21 Jun 2018 12:58:02 +0000 (14:58 +0200)]
transcode: use aliases in video init

12 months agotranscode: refactor sar transform
Francois Cartegnie [Thu, 21 Jun 2018 12:53:59 +0000 (14:53 +0200)]
transcode: refactor sar transform

12 months ago transcode: remove dead code in sar
Francois Cartegnie [Thu, 21 Jun 2018 12:38:32 +0000 (14:38 +0200)]
 transcode: remove dead code in sar