vlc.git
3 years agoupnp: include config.h from source files
Shaleen Jain [Wed, 27 Jun 2018 12:14:32 +0000 (17:44 +0530)]
upnp: include config.h from source files

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
3 years agoupnp: rename module callbacks to be more verbose
Shaleen Jain [Wed, 27 Jun 2018 12:14:31 +0000 (17:44 +0530)]
upnp: rename module callbacks to be more verbose

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
3 years agoupnp: move UpnpInstanceWrapper to upnp-wrapper
Shaleen Jain [Wed, 27 Jun 2018 12:14:30 +0000 (17:44 +0530)]
upnp: move UpnpInstanceWrapper to upnp-wrapper

Move out UpnpInstanceWrapper into its own file
since it no longer has any dependencies on existing
modules and allow other modules to get references to it.
Move as well as the various helper functions that are
directly required by the UpnpInstanceWrapper class
and inline them for a small performance gain.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
3 years agoupnp: add and use a callback listener interface
Shaleen Jain [Wed, 27 Jun 2018 12:14:29 +0000 (17:44 +0530)]
upnp: add and use a callback listener interface

Introduce a Listener interface to
UpnpInstanceWrapper that can be used
by modules to get UpnpEvent callbacks
from libupnp decoupling UpnpInstanceWrapper
from any specific module or its members.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
3 years agocodec: vpx: use VLC_TS_INVALID
Zhao Zhili [Fri, 29 Jun 2018 02:56:43 +0000 (10:56 +0800)]
codec: vpx: use VLC_TS_INVALID

Signed-off-by: Tristan Matthews <tmatth@videolan.org>
3 years agocodec: aom: use VLC_TS_INVALID
Zhao Zhili [Fri, 29 Jun 2018 02:44:12 +0000 (10:44 +0800)]
codec: aom: use VLC_TS_INVALID

Signed-off-by: Tristan Matthews <tmatth@videolan.org>
3 years agoaom: decoder: update video resolution if it changes mid-stream
Tristan Matthews [Fri, 29 Jun 2018 01:15:26 +0000 (21:15 -0400)]
aom: decoder: update video resolution if it changes mid-stream

Cherry-picked from 93a3f58b7afc4d3b4290b5f8fb1e4f6671c30ce6

3 years agoaom: decoder: fallback to dts if pts is invalid
Tristan Matthews [Fri, 29 Jun 2018 01:14:08 +0000 (21:14 -0400)]
aom: decoder: fallback to dts if pts is invalid

Cherry-picked from 043cde8a16911e540543b5f63daee5e3282f4aac

3 years agoaom: decoder: pass metadata from demuxer
Tristan Matthews [Fri, 29 Jun 2018 01:11:56 +0000 (21:11 -0400)]
aom: decoder: pass metadata from demuxer

Cherry-picked from commits:

5bf3ee01298253707bd8f780b54b216ed79a8108
8bb28646fa95de4957df96029401481c1f45e3f2

3 years agoaom: decoder: pass sar values through
Tristan Matthews [Fri, 29 Jun 2018 01:11:00 +0000 (21:11 -0400)]
aom: decoder: pass sar values through

Cherry-picked from 7d69fdb7d87f1c49352a50ee2374ae13cfeeb184

3 years agoaout: Fix a leftover bug from 84b9605
Martin Storsjö [Thu, 28 Jun 2018 11:50:09 +0000 (14:50 +0300)]
aout: Fix a leftover bug from 84b9605

3 years agoRevert "codec: cc: make captions default background half opaque"
Francois Cartegnie [Thu, 28 Jun 2018 10:04:44 +0000 (12:04 +0200)]
Revert "codec: cc: make captions default background half opaque"

This reverts commit e51f96aa07247a244f68650a544db0162699712b.

3 years agodemux: ts: restrict HDMV secondary to exact range
Francois Cartegnie [Thu, 28 Jun 2018 09:53:23 +0000 (11:53 +0200)]
demux: ts: restrict HDMV secondary to exact range

3 years agomacosx: fix position slider appearance (closes #20697)
Felix Paul Kühne [Wed, 27 Jun 2018 19:51:08 +0000 (21:51 +0200)]
macosx: fix position slider appearance (closes #20697)

This fixes a regression introduced in a6e1e1b01c

3 years agohttpd: fix parsing hostname variable
Rémi Denis-Courmont [Wed, 27 Jun 2018 16:33:10 +0000 (19:33 +0300)]
httpd: fix parsing hostname variable

The variable is a hostname / address, not an URL.

3 years agoFreetype: fix calculation of max advance
Salah-Eddin Shaban [Mon, 28 May 2018 08:20:58 +0000 (11:20 +0300)]
Freetype: fix calculation of max advance

Some fonts like Sakkal Majalla have a large max_advance_width, apparently due to some glyphs that are rarely if ever used. This was causing "Invalid max width" errors for text that did fit the available width.

So the calculation of max advance has been modified to take into account only the glyphs we are actually rendering.

Fixes #20102

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 years agodsm: fix memory leak
Thomas Guillem [Wed, 27 Jun 2018 11:24:53 +0000 (13:24 +0200)]
dsm: fix memory leak

3 years agohttpd: Fix leak in case of dubious requet headers
Hugo Beauzée-Luyssen [Wed, 27 Jun 2018 09:16:56 +0000 (11:16 +0200)]
httpd: Fix leak in case of dubious requet headers

3 years agohttpd: Fix potential out of bound write
Hugo Beauzée-Luyssen [Wed, 27 Jun 2018 09:06:42 +0000 (11:06 +0200)]
httpd: Fix potential out of bound write

3 years agoinput: vlm: fix 'now' date scheduling
Francois Cartegnie [Tue, 26 Jun 2018 21:06:51 +0000 (23:06 +0200)]
input: vlm: fix 'now' date scheduling

Since the times have moved from mtime_t to time_t,
both lastcheck and now have same value over
the two successive calls.
It is then never scheduled, or only on next
condsignal or wall clock scheduled command.

3 years agoinput: decoder: don't increment failed timestamp conversion
Francois Cartegnie [Fri, 22 Jun 2018 07:21:46 +0000 (09:21 +0200)]
input: decoder: don't increment failed timestamp conversion

3 years agoRelicense DolbySurround, Headphone and Mono filters to LGPL
Jean-Baptiste Kempf [Tue, 26 Jun 2018 16:31:45 +0000 (18:31 +0200)]
Relicense DolbySurround, Headphone and Mono filters to LGPL

Explicitely allowed by the remaining copyright holder, Boris Dorès,
whose agreement was misunderstood by /me.

3 years agovout: spu: use size_t
Thomas Guillem [Tue, 12 Jun 2018 13:05:15 +0000 (15:05 +0200)]
vout: spu: use size_t

3 years agoFix share/lua/README.txt HTTPd documentation
Alejandro González [Thu, 21 Jun 2018 17:52:31 +0000 (19:52 +0200)]
Fix share/lua/README.txt HTTPd documentation

According to my
code review and testing, the vlc.httpd() Lua method does not take any
arguments and neither support HTTPS in the current VLC version. Also, the
documentation doesn't make it clear on what type of Lua modules it's
available, when it can only be used in the context of interfaces.

Some code snippets that seem to support the findings mentioned above:
modules/lua/intf.c#L258
modules/lua/libs/httpd.c#L82

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 years agomisc: securetransport: Check malloc result
Marvin Scholz [Mon, 25 Jun 2018 21:55:47 +0000 (23:55 +0200)]
misc: securetransport: Check malloc result

Add a check for the malloc result to prevent passing NULL to
CFStringGetCString.

3 years agofreetype: darwin: Fix heap buffer overflow
Marvin Scholz [Mon, 25 Jun 2018 21:54:20 +0000 (23:54 +0200)]
freetype: darwin: Fix heap buffer overflow

The old getCStringCopyForCFStringRef function had a flaw that would
cause a heap-buffer overflow if the CFString easy obtaining of the
pointer fails and the string contains characters that need more than
one byte.

To fix this, remove the old getCStringCopyForCFStringRef and use the
recently added CFStringCopyUTF8CString instead, and generalized it to
work with any encoding. Additionally add a check for the malloc
result to prevent passing NULL to CFStringGetCString.

Fix #20721

3 years agoContribs: update libaom to 1.0.0
Jean-Baptiste Kempf [Mon, 25 Jun 2018 19:23:17 +0000 (21:23 +0200)]
Contribs: update libaom to 1.0.0

3 years agodxva: allow blacklisting based on the driver build
Steve Lhomme [Mon, 25 Jun 2018 15:36:35 +0000 (17:36 +0200)]
dxva: allow blacklisting based on the driver build

Not used for now.

3 years agod3d11_fmt: keep the modified build number once and for all
Steve Lhomme [Mon, 25 Jun 2018 15:32:08 +0000 (17:32 +0200)]
d3d11_fmt: keep the modified build number once and for all

3 years agodxva: allow blacklisting for different codecs
Steve Lhomme [Mon, 25 Jun 2018 13:38:29 +0000 (15:38 +0200)]
dxva: allow blacklisting for different codecs

3 years agodxva: allow per-vendor HEVC black listing
Steve Lhomme [Mon, 25 Jun 2018 13:20:57 +0000 (15:20 +0200)]
dxva: allow per-vendor HEVC black listing

3 years agocodec: add a specific source file to handle GPU blacklisting
Steve Lhomme [Mon, 25 Jun 2018 13:00:37 +0000 (15:00 +0200)]
codec: add a specific source file to handle GPU blacklisting

3 years agowin32: remove manifest comment line
Steve Lhomme [Mon, 25 Jun 2018 14:55:16 +0000 (16:55 +0200)]
win32: remove manifest comment line

It breaks the binary which won't run on W10 (at least)

3 years agocontrib: lame: Avoid the dependency on gettext
Martin Storsjö [Fri, 22 Jun 2018 21:39:14 +0000 (00:39 +0300)]
contrib: lame: Avoid the dependency on gettext

Modify configure.in before reconfiguring, to avoid requiring the
dependency on gettext.

3 years agoWin32: declare compatibility with 7, 8, 8.1
Jean-Baptiste Kempf [Sun, 24 Jun 2018 21:01:58 +0000 (23:01 +0200)]
Win32: declare compatibility with 7, 8, 8.1

This will, most likely, destroy DirectDraw rendering in dr

3 years agovlc_input_item: Add missing input_item_Get/SetDiscTotal
Hugo Beauzée-Luyssen [Fri, 8 Jun 2018 11:55:25 +0000 (13:55 +0200)]
vlc_input_item: Add missing input_item_Get/SetDiscTotal

3 years agofix potfiles after vlc_mtime.h renaming
Steve Lhomme [Fri, 22 Jun 2018 12:03:29 +0000 (14:03 +0200)]
fix potfiles after vlc_mtime.h renaming

3 years agorename mdate() to vlc_tick_now()
Steve Lhomme [Wed, 20 Jun 2018 06:37:11 +0000 (08:37 +0200)]
rename mdate() to vlc_tick_now()

The lua "mdate" remains the same.

3 years agorename msleep() to vlc_tick_sleep()
Steve Lhomme [Wed, 20 Jun 2018 06:29:42 +0000 (08:29 +0200)]
rename msleep() to vlc_tick_sleep()

3 years agorename mwait() to vlc_tick_wait()
Steve Lhomme [Wed, 20 Jun 2018 06:27:09 +0000 (08:27 +0200)]
rename mwait() to vlc_tick_wait()

The lua "mwait" remains the same.

3 years agoinclude: rename vlc_mtime.h to vlc_tick.h
Steve Lhomme [Tue, 19 Jun 2018 11:21:36 +0000 (13:21 +0200)]
include: rename vlc_mtime.h to vlc_tick.h

3 years agoinclude: move vlc_tick_t in vlc_mtime.h
Steve Lhomme [Tue, 19 Jun 2018 11:12:58 +0000 (13:12 +0200)]
include: move vlc_tick_t in vlc_mtime.h

3 years agorename mtime_t to vlc_tick_t
Steve Lhomme [Fri, 22 Jun 2018 11:19:24 +0000 (13:19 +0200)]
rename mtime_t to vlc_tick_t

Keep a copy of vlc_tick_tfor backward compatibility.

3 years agodemux:playlist: simplify the new item creation
Steve Lhomme [Mon, 18 Jun 2018 07:52:05 +0000 (09:52 +0200)]
demux:playlist: simplify the new item creation

The duration is always -1

3 years agonetwork: no need to declare net_Listen() locally
Steve Lhomme [Thu, 21 Jun 2018 11:51:46 +0000 (13:51 +0200)]
network: no need to declare net_Listen() locally

3 years agosout: transcode: reorder includes
Francois Cartegnie [Thu, 21 Jun 2018 08:12:32 +0000 (10:12 +0200)]
sout: transcode: reorder includes

3 years agomissing: fix conflicting type for vlc_New
Thomas Guillem [Thu, 21 Jun 2018 09:15:23 +0000 (11:15 +0200)]
missing: fix conflicting type for vlc_New

3 years agosout: transcode: fix leak w/ threads
Francois Cartegnie [Wed, 20 Jun 2018 15:02:02 +0000 (17:02 +0200)]
sout: transcode: fix leak w/ threads

3 years agosout: transcode: fix bogus encoding thread with multiple video es
Francois Cartegnie [Wed, 20 Jun 2018 13:45:09 +0000 (15:45 +0200)]
sout: transcode: fix bogus encoding thread with multiple video es

3 years agocoreaudio: always return a valid delay
Thomas Guillem [Thu, 21 Jun 2018 07:41:27 +0000 (09:41 +0200)]
coreaudio: always return a valid delay

Even if the render callbacks is not yet called.

3 years agovlc_codec: put pf_decode and pf_packetize into a union
Zhao Zhili [Tue, 19 Jun 2018 12:23:45 +0000 (20:23 +0800)]
vlc_codec: put pf_decode and pf_packetize into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: vc1: reorder initialization
Zhao Zhili [Tue, 19 Jun 2018 12:11:43 +0000 (20:11 +0800)]
packetizer: vc1: reorder initialization

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: mpegaudio: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:42 +0000 (20:11 +0800)]
packetizer: mpegaudio: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: mpeg4video: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:41 +0000 (20:11 +0800)]
packetizer: mpeg4video: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: mpeg4audio: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:40 +0000 (20:11 +0800)]
packetizer: mpeg4audio: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: mlp: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:39 +0000 (20:11 +0800)]
packetizer: mlp: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: mjpeg: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:38 +0000 (20:11 +0800)]
packetizer: mjpeg: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: flac: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:37 +0000 (20:11 +0800)]
packetizer: flac: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: dts: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:36 +0000 (20:11 +0800)]
packetizer: dts: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: copy: reorder and initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:35 +0000 (20:11 +0800)]
packetizer: copy: reorder and initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: avparser: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:34 +0000 (20:11 +0800)]
packetizer: avparser: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agopacketizer: a52: initialize all callback fields
Zhao Zhili [Tue, 19 Jun 2018 12:11:33 +0000 (20:11 +0800)]
packetizer: a52: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agoxcb/window: implement --no-video-deco
Rémi Denis-Courmont [Tue, 19 Jun 2018 19:05:16 +0000 (22:05 +0300)]
xcb/window: implement --no-video-deco

3 years agoxdg-shell: use the decorated flag
Rémi Denis-Courmont [Tue, 19 Jun 2018 18:50:59 +0000 (21:50 +0300)]
xdg-shell: use the decorated flag

3 years agowindow: add is_decorated config flag
Rémi Denis-Courmont [Tue, 19 Jun 2018 18:48:59 +0000 (21:48 +0300)]
window: add is_decorated config flag

3 years agoxdg-shell: provide a fully configured window
Erwan Tulou [Tue, 19 Jun 2018 18:42:37 +0000 (21:42 +0300)]
xdg-shell: provide a fully configured window

On Weston, this fixes the following test case:
cmd: vlc -I qt -V wl --no-embedded-video --no-video-deco
error: xdg_surface@9: error 3: xdg_surface has never been configured

Modified-and-...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
3 years agoxdg-shell: fix indentation
Rémi Denis-Courmont [Tue, 19 Jun 2018 18:41:42 +0000 (21:41 +0300)]
xdg-shell: fix indentation

3 years agoxdg-shell: remove stray comment
Rémi Denis-Courmont [Tue, 19 Jun 2018 18:35:34 +0000 (21:35 +0300)]
xdg-shell: remove stray comment

3 years agoqt: custom_menus: Do not leak created actions
Hugo Beauzée-Luyssen [Tue, 19 Jun 2018 14:33:54 +0000 (16:33 +0200)]
qt: custom_menus: Do not leak created actions

3 years agoContribs, Qt: work-around compiler crash on Mingw/32
Jean-Baptiste Kempf [Tue, 19 Jun 2018 09:20:09 +0000 (11:20 +0200)]
Contribs, Qt: work-around compiler crash on Mingw/32

3 years agopacketizer: flac: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:20 +0000 (17:47 +0800)]
packetizer: flac: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: kate: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:19 +0000 (17:47 +0800)]
codec: kate: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: spudec: check malloc
Zhao Zhili [Fri, 8 Jun 2018 09:47:18 +0000 (17:47 +0800)]
codec: spudec: check malloc

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: rawvideo: set pf_flush callback for packetizer
Zhao Zhili [Fri, 8 Jun 2018 09:47:17 +0000 (17:47 +0800)]
codec: rawvideo: set pf_flush callback for packetizer

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: theora: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:16 +0000 (17:47 +0800)]
codec: theora: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: speex: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:15 +0000 (17:47 +0800)]
codec: speex: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: daala: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:14 +0000 (17:47 +0800)]
codec: daala: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: oggspots: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:13 +0000 (17:47 +0800)]
codec: oggspots: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: lpcm: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:12 +0000 (17:47 +0800)]
codec: lpcm: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: spudec: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:11 +0000 (17:47 +0800)]
codec: spudec: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: cvdsub: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:10 +0000 (17:47 +0800)]
codec: cvdsub: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: svcdsub: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:09 +0000 (17:47 +0800)]
codec: svcdsub: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: vorbis: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:08 +0000 (17:47 +0800)]
codec: vorbis: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agocodec: aes3: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili [Fri, 8 Jun 2018 09:47:07 +0000 (17:47 +0800)]
codec: aes3: prepare to put pf_packetize and pf_decode into a union

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agoQt: try to fix linking with Qt 5.11
Jean-Baptiste Kempf [Tue, 19 Jun 2018 07:43:26 +0000 (09:43 +0200)]
Qt: try to fix linking with Qt 5.11

-ldwmapi needs to be after -lqwindows

3 years agofreetype: darwin: Fix comment for CFStringCopyUTF8CString
Marvin Scholz [Mon, 18 Jun 2018 22:44:56 +0000 (00:44 +0200)]
freetype: darwin: Fix comment for CFStringCopyUTF8CString

3 years agofreetype: darwin: Fix CoreText_GetFallbacks
Marvin Scholz [Mon, 18 Jun 2018 22:23:08 +0000 (00:23 +0200)]
freetype: darwin: Fix CoreText_GetFallbacks

3 years agoxdg-shell: tell the WM of the desired window size
Rémi Denis-Courmont [Mon, 18 Jun 2018 18:00:44 +0000 (21:00 +0300)]
xdg-shell: tell the WM of the desired window size

3 years agoxdg-shell: report window size correctly
Rémi Denis-Courmont [Mon, 18 Jun 2018 17:52:04 +0000 (20:52 +0300)]
xdg-shell: report window size correctly

If a dimension is zero, then we get to choose it, so we pick the last
dimension requested by the core - rather than the current dimension.

If a dimension is non-zero, we have to use the value regardless of what
the core requested. This fixes incorrect video sizes in fullscreen,
maximized or tiled windows.

Note: Some window managers may exhibit a bug here, whereby they do not
reset the window dimensions to zero after leaving fullscreen/maximized
state.

3 years agoxdg-shell: postpone setting fullscreen
Rémi Denis-Courmont [Mon, 18 Jun 2018 17:51:28 +0000 (20:51 +0300)]
xdg-shell: postpone setting fullscreen

...until after the event thread is started.
There are no points in making a special case here.

Note: Some window manager may not handle a window going fullscreen at
first correctly, failing to set the correct size.

3 years agoconfigure: remove LIBPTHREAD
Rémi Denis-Courmont [Sun, 17 Jun 2018 09:22:08 +0000 (12:22 +0300)]
configure: remove LIBPTHREAD

POSIX threads are always enabled implicitly.

3 years agoconfigure: remove legacy _REENTRANT / _THREAD_SAFE
Rémi Denis-Courmont [Sun, 17 Jun 2018 09:17:58 +0000 (12:17 +0300)]
configure: remove legacy _REENTRANT / _THREAD_SAFE

3 years agopkgconfig: remove obsolescent _REENTRANT & _THREAD_SAFE
Rémi Denis-Courmont [Sun, 17 Jun 2018 09:16:44 +0000 (12:16 +0300)]
pkgconfig: remove obsolescent _REENTRANT & _THREAD_SAFE

This is implied by recent versions of POSIX, and LibVLC should not mess
the application namespace unless necessary.

3 years agoconfigure: always pass -pthread on Linux
Rémi Denis-Courmont [Sun, 17 Jun 2018 09:07:06 +0000 (12:07 +0300)]
configure: always pass -pthread on Linux

This appears to be the official way to get POSIX threads. In practice,
it pre-defines _REENTRANT to 1 and pulls -lpthread.
(This works with both GCC and Clang.)

3 years agoplaylist: fix ordering
Rémi Denis-Courmont [Mon, 18 Jun 2018 17:07:32 +0000 (20:07 +0300)]
playlist: fix ordering

3 years agodemux: mp4: workaround broken AC3 mapping
Francois Cartegnie [Sun, 17 Jun 2018 17:20:11 +0000 (19:20 +0200)]
demux: mp4: workaround broken AC3 mapping

3 years agocontrib: xcb: add pthread-stubs dependency
Thomas Guillem [Fri, 15 Jun 2018 07:36:24 +0000 (09:36 +0200)]
contrib: xcb: add pthread-stubs dependency

3 years agohttpd: use assertion instead of leaking
Rémi Denis-Courmont [Sun, 17 Jun 2018 18:14:59 +0000 (21:14 +0300)]
httpd: use assertion instead of leaking

3 years agoskins2(x11): fix vlc crashing on Kwin
Erwan Tulou [Sun, 17 Jun 2018 17:51:36 +0000 (19:51 +0200)]
skins2(x11): fix vlc crashing on Kwin

3 years agohttpd: handle one error
Rémi Denis-Courmont [Sun, 17 Jun 2018 18:11:28 +0000 (21:11 +0300)]
httpd: handle one error