vlc.git
2 years agorawvid: drop unused include
Tristan Matthews [Wed, 26 Jul 2017 14:37:27 +0000 (10:37 -0400)]
rawvid: drop unused include

2 years agomkv: pass a const mkv_track_t to packetize_wavpack()
Steve Lhomme [Mon, 31 Jul 2017 13:03:00 +0000 (15:03 +0200)]
mkv: pass a const mkv_track_t to packetize_wavpack()

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomkv: use a const iterator when updating the PCR
Steve Lhomme [Mon, 31 Jul 2017 13:02:59 +0000 (15:02 +0200)]
mkv: use a const iterator when updating the PCR

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomkv: use a destructor to release all the resources allocated in an mkv_track_t
Steve Lhomme [Mon, 31 Jul 2017 13:02:58 +0000 (15:02 +0200)]
mkv: use a destructor to release all the resources allocated in an mkv_track_t

This way we can't forget any when releasing it from various places.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomkv: store a unique_ptr version of the mkv_track_t in the track list
Steve Lhomme [Mon, 31 Jul 2017 13:02:57 +0000 (15:02 +0200)]
mkv: store a unique_ptr version of the mkv_track_t in the track list

The next step is to provide a destructor so the tracks_map_t can deal with the
lifecycle of the mkv_track_t.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomkv:matroska_segment: handle track init failure
Steve Lhomme [Mon, 31 Jul 2017 13:02:56 +0000 (15:02 +0200)]
mkv:matroska_segment: handle track init failure

We should not use a track that failed to be initialized properly.
The logic of the return value is inverted to be more readable. Before
it would never fail anyway.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomkv: don't let zlib_decompress_extra() destroy the track it's given
Steve Lhomme [Mon, 31 Jul 2017 13:02:55 +0000 (15:02 +0200)]
mkv: don't let zlib_decompress_extra() destroy the track it's given

It didn't clean the es_format_t that's fully filled.
Also emit an error telling we can't handle the compression.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomkv: let the track init its es_format_t
Steve Lhomme [Mon, 31 Jul 2017 13:02:54 +0000 (15:02 +0200)]
mkv: let the track init its es_format_t

So it's not created in a funny state.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomkv: remove dead code
Steve Lhomme [Mon, 31 Jul 2017 13:02:53 +0000 (15:02 +0200)]
mkv: remove dead code

There's never anything in the p_data_init buffer.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoty: avoid aliasing
Rémi Denis-Courmont [Sun, 30 Jul 2017 19:13:53 +0000 (22:13 +0300)]
ty: avoid aliasing

2 years agoty: fix variable aliasing bug
Rémi Denis-Courmont [Sun, 30 Jul 2017 19:12:03 +0000 (22:12 +0300)]
ty: fix variable aliasing bug

2 years agovdr: fix unused variable warning
Rémi Denis-Courmont [Sun, 30 Jul 2017 19:09:12 +0000 (22:09 +0300)]
vdr: fix unused variable warning

2 years agomacosx: Fix positioning and color of time information in fs panel
David Fuhrmann [Sun, 30 Jul 2017 18:54:11 +0000 (20:54 +0200)]
macosx: Fix positioning and color of time information in fs panel

FS panel does not follow RTL now when it comes to time fields.
This makes sense as the slider below moves from left to right
as well.
Also set color of textfields to white to fix a problem on 10.7.

2 years agomacosx: Fix RTL for fullscreen panel, increase maximum height
David Fuhrmann [Sun, 30 Jul 2017 17:12:42 +0000 (19:12 +0200)]
macosx: Fix RTL for fullscreen panel, increase maximum height

For correct RTL support, add a box around the playback controls
so that they stay left-to-right. Also fix some other constraints.
Increased the maximum height, so that the buttons can be even
bigger for TV setups.

2 years agomacosx: Add missing layout constraints for "apply profile" chkboxes
David Fuhrmann [Sun, 30 Jul 2017 16:38:25 +0000 (18:38 +0200)]
macosx: Add missing layout constraints for "apply profile" chkboxes

Adds some layout constraints + priorities to fix position beneath
the popup box. Adds HUD cell subclasses and correct font so that
it looks the same as the other checkboxes.

2 years agomacosx: Fix RTL for checkboxes in several dialogs
David Fuhrmann [Sun, 30 Jul 2017 16:33:47 +0000 (18:33 +0200)]
macosx: Fix RTL for checkboxes in several dialogs

Fix RTL for checkboxes in Open panel, video panel and audio panel.

To correctly setup RTL for checkboxes, for each checkbox
go to attributes inspector, scroll to text direction, and for
"Mirror" attributes set "in right to left interface".

Unfortunately, the default values do not work.

2 years agodemux: process filters in usual order
Rémi Denis-Courmont [Sun, 30 Jul 2017 18:26:00 +0000 (21:26 +0300)]
demux: process filters in usual order

There are no obvious reasons to process the demux filter chain in
reverse order. All other chains are processed from upstream to
downstream.

As there was typically only zero or one filter(s), it won´t matter
much for the time being.

2 years agodemux: allow filter creation to fail
Rémi Denis-Courmont [Sun, 30 Jul 2017 18:15:42 +0000 (21:15 +0300)]
demux: allow filter creation to fail

Just skip the chain entry. This is consistent with the behaviour of all
or almost all other configuration chains (notably stream filters).

2 years agostats: fix dubious cast
Rémi Denis-Courmont [Sun, 30 Jul 2017 18:11:31 +0000 (21:11 +0300)]
stats: fix dubious cast

2 years agodecomp: fix pointer type in vararg
Rémi Denis-Courmont [Sun, 30 Jul 2017 17:43:14 +0000 (20:43 +0300)]
decomp: fix pointer type in vararg

2 years agoes_out: add type-safe es_out_SetPCR() helper
Rémi Denis-Courmont [Sun, 30 Jul 2017 17:35:31 +0000 (20:35 +0300)]
es_out: add type-safe es_out_SetPCR() helper

2 years agomacOS project: Add keychain.m in misc area
David Fuhrmann [Sun, 30 Jul 2017 15:56:42 +0000 (17:56 +0200)]
macOS project: Add keychain.m in misc area

2 years agomacosx: Implement upgrade path for RTL for old setting files
David Fuhrmann [Sun, 30 Jul 2017 15:52:15 +0000 (17:52 +0200)]
macosx: Implement upgrade path for RTL for old setting files

Auto-upgrade old setting (i.e. if a user selected a RTL language
before, the settings will be autoupdated and VLC will be
restarted). Restart will not happen for the most common case
(auto language).

2 years agomacosx: Rename preferences helpers to better describe purpose
David Fuhrmann [Sun, 30 Jul 2017 15:22:20 +0000 (17:22 +0200)]
macosx: Rename preferences helpers to better describe purpose

2 years agomacosx: Force right to left interface if RTL language was selected
David Fuhrmann [Sun, 30 Jul 2017 08:14:40 +0000 (10:14 +0200)]
macosx: Force right to left interface if RTL language was selected

Enable RTL interface if RTL language was explicitly selected in
preferences.

2 years agoCVPX converter: enable for tvOS
Felix Paul Kühne [Sun, 30 Jul 2017 14:09:39 +0000 (16:09 +0200)]
CVPX converter: enable for tvOS

2 years agodemux: ogg: fix regressions with the es_format mess
Francois Cartegnie [Thu, 27 Jul 2017 20:02:21 +0000 (22:02 +0200)]
demux: ogg: fix regressions with the es_format mess

2 years agodemux: adaptive: add cancelation point while buffering
Francois Cartegnie [Thu, 27 Jul 2017 14:03:11 +0000 (16:03 +0200)]
demux: adaptive: add cancelation point while buffering

refs #18612

2 years agodemux: avi: fix left shift ub
Francois Cartegnie [Thu, 27 Jul 2017 21:39:42 +0000 (23:39 +0200)]
demux: avi: fix left shift ub

2 years agodemux: avi: check chunk size
Francois Cartegnie [Thu, 27 Jul 2017 21:21:56 +0000 (23:21 +0200)]
demux: avi: check chunk size

2 years agodemux: avi: remove xmalloc
Francois Cartegnie [Thu, 27 Jul 2017 21:05:57 +0000 (23:05 +0200)]
demux: avi: remove xmalloc

2 years agoopengl: converter_cvpx: don't handle color space
Victorien Le Couviour--Tuffet [Thu, 27 Jul 2017 10:06:34 +0000 (12:06 +0200)]
opengl: converter_cvpx: don't handle color space

VideoToolbox already handles it.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomacosx: don't handle color primaries
Victorien Le Couviour--Tuffet [Thu, 27 Jul 2017 10:06:33 +0000 (12:06 +0200)]
macosx: don't handle color primaries

The GL shader already does this job.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agocaopengllayer: don't handle color primaries
Victorien Le Couviour--Tuffet [Thu, 27 Jul 2017 10:06:32 +0000 (12:06 +0200)]
caopengllayer: don't handle color primaries

The GL shader already does this job.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agosd: avahi: change unappropriate msg_Err to msg_Info
Victorien Le Couviour--Tuffet [Tue, 25 Jul 2017 16:00:38 +0000 (18:00 +0200)]
sd: avahi: change unappropriate msg_Err to msg_Info

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agovpx: keep the multiview_mode from the demux
Adrien Maglo [Wed, 26 Jul 2017 19:24:29 +0000 (21:24 +0200)]
vpx: keep the multiview_mode from the demux

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoavcodec: keep the multiview_mode from the demux
Adrien Maglo [Wed, 26 Jul 2017 19:24:28 +0000 (21:24 +0200)]
avcodec: keep the multiview_mode from the demux

2 years agoQt: Remove old icons sources
Alexandre Perraud [Thu, 27 Jul 2017 13:55:32 +0000 (15:55 +0200)]
Qt: Remove old icons sources

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoQt: Add icons source as svg
Alexandre Perraud [Thu, 27 Jul 2017 13:48:23 +0000 (15:48 +0200)]
Qt: Add icons source as svg

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoQt: Change almost all icons
Alexandre Perraud [Thu, 27 Jul 2017 13:46:37 +0000 (15:46 +0200)]
Qt: Change almost all icons

Those are SVG based, and will be easier for HiDPI screens

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodirect3d11: fix the output video_format_t initialization
Steve Lhomme [Thu, 27 Jul 2017 15:46:13 +0000 (17:46 +0200)]
direct3d11: fix the output video_format_t initialization

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodirect3d11: fix the original picQuad position
Steve Lhomme [Thu, 27 Jul 2017 15:46:12 +0000 (17:46 +0200)]
direct3d11: fix the original picQuad position

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodirect3d11: update the picQuad position when the display position changed
Steve Lhomme [Thu, 27 Jul 2017 15:46:11 +0000 (17:46 +0200)]
direct3d11: update the picQuad position when the display position changed

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodirect3d11: use the texture position defined by picture placement
Steve Lhomme [Thu, 27 Jul 2017 15:46:10 +0000 (17:46 +0200)]
direct3d11: use the texture position defined by picture placement

Fixes crop values not handled #18529

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodirect3d11: update the quad position using the picture placing algorithm
Steve Lhomme [Thu, 27 Jul 2017 15:46:09 +0000 (17:46 +0200)]
direct3d11: update the quad position using the picture placing algorithm

When the decoder uses a different size than what was configured in the pool.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agodirect3d11: use the same size for the staging texture as the source picture
Steve Lhomme [Thu, 27 Jul 2017 15:46:08 +0000 (17:46 +0200)]
direct3d11: use the same size for the staging texture as the source picture

So we don't need to deal with 2 ways to position the texture.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoD3D9 adjust: fix name
Jean-Baptiste Kempf [Thu, 27 Jul 2017 15:31:46 +0000 (17:31 +0200)]
D3D9 adjust: fix name

Ref #18613

2 years agodemux: ts: add support for multiview descriptor
Francois Cartegnie [Thu, 27 Jul 2017 08:33:04 +0000 (10:33 +0200)]
demux: ts: add support for multiview descriptor

2 years agocaopengllayer: remove spaces from blank lines
Victorien Le Couviour--Tuffet [Wed, 26 Jul 2017 23:29:59 +0000 (01:29 +0200)]
caopengllayer: remove spaces from blank lines

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agomp4: save the multiview_mode meta-data encoded with the spatial media specification v1
Adrien Maglo [Wed, 26 Jul 2017 19:24:27 +0000 (21:24 +0200)]
mp4: save the multiview_mode meta-data encoded with the spatial media specification v1

https://github.com/google/spatial-media/blob/master/docs/spherical-video-rfc.md#stereo-mode

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
2 years agodemux: mp4: enable 3DDS multiview
Francois Cartegnie [Wed, 26 Jul 2017 21:51:05 +0000 (23:51 +0200)]
demux: mp4: enable 3DDS multiview

Early PS3 sequential 3D

2 years agodemux: libmp4: add and parse 3DDS uuid
Francois Cartegnie [Wed, 26 Jul 2017 21:53:39 +0000 (23:53 +0200)]
demux: libmp4: add and parse 3DDS uuid

2 years agodemux: libmp4: move uuid parsing
Francois Cartegnie [Wed, 26 Jul 2017 21:52:26 +0000 (23:52 +0200)]
demux: libmp4: move uuid parsing

2 years agopacketizer: mpegvideo: parse/set multiview
Francois Cartegnie [Wed, 26 Jul 2017 20:55:51 +0000 (22:55 +0200)]
packetizer: mpegvideo: parse/set multiview

untested

2 years agopacketizer: hevc: set multiview
Francois Cartegnie [Wed, 26 Jul 2017 20:08:36 +0000 (22:08 +0200)]
packetizer: hevc: set multiview

2 years agopacketizer: h264: set multiview
Francois Cartegnie [Wed, 26 Jul 2017 19:42:06 +0000 (21:42 +0200)]
packetizer: h264: set multiview

2 years agopacketizer: hxxx: parse frame_packing
Francois Cartegnie [Wed, 26 Jul 2017 19:41:51 +0000 (21:41 +0200)]
packetizer: hxxx: parse frame_packing

2 years agopacketizer: mpegvideo: add missing mapping
Francois Cartegnie [Wed, 26 Jul 2017 19:41:19 +0000 (21:41 +0200)]
packetizer: mpegvideo: add missing mapping

2 years agovout: handle error without aborting
Rémi Denis-Courmont [Wed, 26 Jul 2017 19:07:54 +0000 (22:07 +0300)]
vout: handle error without aborting

Use an empty filter chain to denote direct rendering, and no filter
chain to denote failure, instead of the other way around previously.

2 years agomacOS build.sh: Enable -Werror=partial-availability for contribs
David Fuhrmann [Wed, 26 Jul 2017 19:07:52 +0000 (21:07 +0200)]
macOS build.sh: Enable -Werror=partial-availability for contribs

Usually, contribs do not support runtime handling of partial
availability well. Turning this warning into an error has several
advantages:
- It fixes feature detection for custom build scripts: If a custom
build script includes the correct header, the check will now fail
to build and replacements will be enabled. This is the case for
ffmpeg, for instance.
- Even if configure check might not fail, the build will fail
for correctly annotated functions, once they are used in the code.
This makes it very visible if new partial symbols are added, so
that they can be fixed or disabled subsequently.

refs #18476

2 years agomacOS build.sh: Build gettext before contribs
David Fuhrmann [Wed, 26 Jul 2017 19:07:31 +0000 (21:07 +0200)]
macOS build.sh: Build gettext before contribs

2 years agovout: make vout_FilterDisplay() work always
Rémi Denis-Courmont [Wed, 26 Jul 2017 18:54:56 +0000 (21:54 +0300)]
vout: make vout_FilterDisplay() work always

Deal with the trivial case whereby the vout is unfiltered. Simplify the
call sites accordingly.

2 years agovout: remove redundant test
Rémi Denis-Courmont [Wed, 26 Jul 2017 18:47:02 +0000 (21:47 +0300)]
vout: remove redundant test

If the vout is unfiltered (in this context), then use_dr is true.

2 years agofilter_chain: remove useless length member
Rémi Denis-Courmont [Wed, 26 Jul 2017 18:26:52 +0000 (21:26 +0300)]
filter_chain: remove useless length member

2 years agofilter_chain: replace GetLength with IsEmpty
Rémi Denis-Courmont [Wed, 26 Jul 2017 18:25:15 +0000 (21:25 +0300)]
filter_chain: replace GetLength with IsEmpty

Nothing cares about the actual length if it is non-zero. Also constify.

2 years agospu: remove useless check
Rémi Denis-Courmont [Wed, 26 Jul 2017 18:07:48 +0000 (21:07 +0300)]
spu: remove useless check

filter_chain_Reset(NULL, NULL) is a no-op on an empty chain.

2 years agofilter_chain: use container_of()
Rémi Denis-Courmont [Wed, 26 Jul 2017 18:04:47 +0000 (21:04 +0300)]
filter_chain: use container_of()

2 years agocaopengllayer: set HDR mode on 10.12 and later only (closes #17763)
Felix Paul Kühne [Wed, 26 Jul 2017 16:35:17 +0000 (18:35 +0200)]
caopengllayer: set HDR mode on 10.12 and later only (closes #17763)

2 years agod3d11va: don't use the external pool on Qualcomm devices if the sizes don't match
Steve Lhomme [Wed, 26 Jul 2017 13:06:39 +0000 (15:06 +0200)]
d3d11va: don't use the external pool on Qualcomm devices if the sizes don't match

On such devices the decoder needs to have the exact size with the required DXVA
padding but no more and no less. So we can't anything that doesn't match these
criteria for decoding.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agocaopengllayer: fix green output
Victorien Le Couviour--Tuffet [Wed, 26 Jul 2017 14:14:01 +0000 (16:14 +0200)]
caopengllayer: fix green output

Fixes #18309.

2 years agomisc: ensure vlc_object_t is correctly aligned
Rémi Denis-Courmont [Wed, 26 Jul 2017 14:50:24 +0000 (17:50 +0300)]
misc: ensure vlc_object_t is correctly aligned

See also 4f91e6bc15d8b72deb1f761ca857a33d672c91ef.

2 years agoRevert "misc: ensure vlc_object_t is correctly aligned"
Rémi Denis-Courmont [Wed, 26 Jul 2017 14:48:52 +0000 (17:48 +0300)]
Revert "misc: ensure vlc_object_t is correctly aligned"

This reverts commit 4f91e6bc15d8b72deb1f761ca857a33d672c91ef.

2 years agoservice_discovery: Consistently use playlist_Lock/Unlock
Marvin Scholz [Tue, 25 Jul 2017 19:16:03 +0000 (21:16 +0200)]
service_discovery: Consistently use playlist_Lock/Unlock

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2 years agoservice_discovery: Improve debug log messages
Marvin Scholz [Tue, 25 Jul 2017 19:16:02 +0000 (21:16 +0200)]
service_discovery: Improve debug log messages

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2 years agobonjour: clarify log messages and use correct levels
Marvin Scholz [Tue, 25 Jul 2017 19:16:01 +0000 (21:16 +0200)]
bonjour: clarify log messages and use correct levels

Nearly all messages had level Info, which is unnecessary.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2 years agodemux: adaptive: fix cross category es recycling
Francois Cartegnie [Wed, 26 Jul 2017 14:35:39 +0000 (16:35 +0200)]
demux: adaptive: fix cross category es recycling

refs #18565

2 years agodemux: adaptive: missing es_format_Init
Francois Cartegnie [Wed, 26 Jul 2017 14:33:21 +0000 (16:33 +0200)]
demux: adaptive: missing es_format_Init

2 years agodemux: ts: probe atsc using psip base pid
Francois Cartegnie [Wed, 26 Jul 2017 10:24:39 +0000 (12:24 +0200)]
demux: ts: probe atsc using psip base pid

2 years agodemux: ts: unwanted fall through
Francois Cartegnie [Wed, 26 Jul 2017 10:21:59 +0000 (12:21 +0200)]
demux: ts: unwanted fall through

2 years agolib: renderer_discoverer: add item hold/release
Thomas Guillem [Wed, 26 Jul 2017 14:32:29 +0000 (16:32 +0200)]
lib: renderer_discoverer: add item hold/release

Libvlc users need to hold a reference to an item before using it. This avoid
use-after-free if the delete callback is called while an item is used by the
media player.

2 years agolib: renderer_discoverer: fix bad cast
Thomas Guillem [Wed, 26 Jul 2017 14:18:27 +0000 (16:18 +0200)]
lib: renderer_discoverer: fix bad cast

2 years agodemux: stl: fix use-after-free
Thomas Guillem [Wed, 26 Jul 2017 13:41:52 +0000 (15:41 +0200)]
demux: stl: fix use-after-free

demux->p_sys was not set before calling the Close function that used it. This
p_sys could have been set and free by an other demux module.

2 years agomacosx: remove noise filter from GUI
Victorien Le Couviour--Tuffet [Wed, 26 Jul 2017 12:33:03 +0000 (14:33 +0200)]
macosx: remove noise filter from GUI

This filter has been removed between 1.1.13 and 2.0.0.
Closes #18483.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agojpeg2000: avoid arithmetic overflow (CID #1415689)
Tristan Matthews [Wed, 26 Jul 2017 04:30:14 +0000 (00:30 -0400)]
jpeg2000: avoid arithmetic overflow (CID #1415689)

2 years agospatialaudio: handle speaker memory allocation failure
Tristan Matthews [Mon, 24 Jul 2017 15:43:01 +0000 (11:43 -0400)]
spatialaudio: handle speaker memory allocation failure

2 years agoconfig: assert item type matching
Rémi Denis-Courmont [Tue, 25 Jul 2017 15:56:25 +0000 (18:56 +0300)]
config: assert item type matching

This is consistent with variables handling, as well as config choices.

2 years agohotkeys: fix unused warning
Thomas Guillem [Tue, 25 Jul 2017 15:53:50 +0000 (17:53 +0200)]
hotkeys: fix unused warning

2 years agoconfig_GetType(): remove unused parameter
Rémi Denis-Courmont [Tue, 25 Jul 2017 15:37:08 +0000 (18:37 +0300)]
config_GetType(): remove unused parameter

2 years agoconfig_FindConfig(): remove unused parameter
Rémi Denis-Courmont [Tue, 25 Jul 2017 15:37:08 +0000 (18:37 +0300)]
config_FindConfig(): remove unused parameter

2 years agoNSIS: Enable HiDPI support
Marvin Scholz [Tue, 25 Jul 2017 15:29:41 +0000 (17:29 +0200)]
NSIS: Enable HiDPI support

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agoMakefile: remove --disable-httpd
Rémi Denis-Courmont [Sun, 23 Jul 2017 16:53:58 +0000 (19:53 +0300)]
Makefile: remove --disable-httpd

Unlike, say stream output, the HTTP server has no hooks anywhere within
the rest of the core: it is used exclusively through calls from modules
to the LibVLC run-time.

Thus, if no modules use it, the code will be eliminated by linker (in
static builds) or not paged in (in dynamic builds). There is not much
point in adding a build-time option to turn it off. It only creates
problems with keeping missing.c in sync.

2 years agovout: win32: handle tilt sensors for VR orientation
Steve Lhomme [Mon, 27 Feb 2017 13:18:36 +0000 (14:18 +0100)]
vout: win32: handle tilt sensors for VR orientation

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2 years agohotkeys: handle viewpoint changes from the vout
Steve Lhomme [Tue, 25 Jul 2017 12:51:11 +0000 (14:51 +0200)]
hotkeys: handle viewpoint changes from the vout

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2 years agovout: add vout_display_SendEventViewpointMoved
Steve Lhomme [Mon, 27 Feb 2017 13:16:18 +0000 (14:16 +0100)]
vout: add vout_display_SendEventViewpointMoved

"vout display" modules can call this function to update the view point.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2 years agoinput: ensure that viewpoint structs are read only from callbacks
Thomas Guillem [Tue, 25 Jul 2017 12:17:10 +0000 (14:17 +0200)]
input: ensure that viewpoint structs are read only from callbacks

2 years agoinput: send initial video viewpoint to the input
Thomas Guillem [Tue, 25 Jul 2017 08:08:14 +0000 (10:08 +0200)]
input: send initial video viewpoint to the input

2 years agoinput: add INPUT_SET_INITIAL_VIEWPOINT control
Thomas Guillem [Mon, 24 Jul 2017 17:17:29 +0000 (19:17 +0200)]
input: add INPUT_SET_INITIAL_VIEWPOINT control

This new control sets an initial viewpoint (generally comming from the video
ES) to the input.

If the viewpoint had already been changed by the user, the input viewpoint
value won't change and the user viewpoint will be sent to all ESes.

2 years agoaout: fix viewpoint init state
Thomas Guillem [Tue, 25 Jul 2017 07:38:20 +0000 (09:38 +0200)]
aout: fix viewpoint init state

Send previous viewpoint to new aout stream session.

2 years agovout: don't inherit viewpoint
Thomas Guillem [Tue, 25 Jul 2017 07:33:27 +0000 (09:33 +0200)]
vout: don't inherit viewpoint

And don't trigger viewpoint manually. This variable must be triggered only by
the owner of the viewpoint address (the input) in order to ensure the atomicity
of the struct.

2 years agovout: fix viewpoint init state
Thomas Guillem [Mon, 24 Jul 2017 14:38:29 +0000 (16:38 +0200)]
vout: fix viewpoint init state

This value is only used to compare new viewpoints with the current one.