vlc.git
6 days agomacosx/main menu: use global list of supported subtitle extensions instead of hardcod... master
Felix Paul Kühne [Tue, 16 Apr 2019 22:17:20 +0000 (00:17 +0200)]
macosx/main menu: use global list of supported subtitle extensions instead of hardcoding another one

6 days agomacosx: fix legacy media key support activation
Felix Paul Kühne [Tue, 16 Apr 2019 22:06:55 +0000 (00:06 +0200)]
macosx: fix legacy media key support activation

This also fixes #21358.

6 days agomacosx/playlist: add notifications when items are added or removed
Felix Paul Kühne [Tue, 16 Apr 2019 21:46:42 +0000 (23:46 +0200)]
macosx/playlist: add notifications when items are added or removed

6 days agomacosx/main menu: refactor and modernize dynamic menu handling (closes #22204)
Felix Paul Kühne [Tue, 16 Apr 2019 21:11:34 +0000 (23:11 +0200)]
macosx/main menu: refactor and modernize dynamic menu handling (closes #22204)

6 days agomacosx/main menu: cosmetics
Felix Paul Kühne [Tue, 16 Apr 2019 20:39:31 +0000 (22:39 +0200)]
macosx/main menu: cosmetics

6 days agocontrib: qtdeclarative: Disable the JIT when targeting windows/armv7
Martin Storsjö [Mon, 4 Feb 2019 11:30:28 +0000 (13:30 +0200)]
contrib: qtdeclarative: Disable the JIT when targeting windows/armv7

The JIT doesn't support this OS/arch combination, but used to
blindly enable the JIT on any 32 bit arm target, except for iOS.

This is a cherrypick of an upstream patch.

7 days agovout: use display date for subpicture_updater_t
Thomas Guillem [Tue, 16 Apr 2019 15:32:06 +0000 (17:32 +0200)]
vout: use display date for subpicture_updater_t

This fixes rendering of SPUs using a subpicture_updater_t

Regression from cc52435296404a526e239f0b3323a3651f45987a

7 days agodemux: ts: fix offset units
Francois Cartegnie [Tue, 16 Apr 2019 14:22:05 +0000 (16:22 +0200)]
demux: ts: fix offset units

7 days agocontrib: qt: use upstream tarball names
Konstantin Pavlov [Tue, 16 Apr 2019 14:00:57 +0000 (17:00 +0300)]
contrib: qt: use upstream tarball names

7 days agodemux: hls: set start offset from manifest
Francois Cartegnie [Tue, 16 Apr 2019 13:26:40 +0000 (15:26 +0200)]
demux: hls: set start offset from manifest

fixes time/length/seek after an early first seek
(data timestamps not known yet)

7 days agoQt: messages: remove manual block update
Francois Cartegnie [Tue, 16 Apr 2019 13:11:08 +0000 (15:11 +0200)]
Qt: messages: remove manual block update

7 days agoQt: messages: remove HTML parsing
Francois Cartegnie [Tue, 16 Apr 2019 13:10:28 +0000 (15:10 +0200)]
Qt: messages: remove HTML parsing

and don't parse HTML from untrusted logs

7 days agoQt: messages: no empty start block
Francois Cartegnie [Tue, 16 Apr 2019 13:09:35 +0000 (15:09 +0200)]
Qt: messages: no empty start block

7 days agocontrib:wine-headers: remove unused D3D9 features
Steve Lhomme [Mon, 15 Apr 2019 08:29:34 +0000 (10:29 +0200)]
contrib:wine-headers: remove unused D3D9 features

We don't use IDirect3D9ExOverlayExtension or D3DOVERLAYCAPS anymore.

7 days agocontrib: gnutls: Update to gnutls 3.6.7.1
Martin Storsjö [Tue, 16 Apr 2019 11:46:39 +0000 (14:46 +0300)]
contrib: gnutls: Update to gnutls 3.6.7.1

This was a stealth release to fix packaging issues (relevant for
building on windows) in the 3.6.7 tarball, see
https://lists.gnupg.org/pipermail/gnutls-help/2019-April/004506.html.

Remove the gnutls-winstore-ntop patch which conflicts with how
upstream now handles the inet_pton function.

7 days agovout: fix typo
Thomas Guillem [Mon, 15 Apr 2019 13:19:43 +0000 (15:19 +0200)]
vout: fix typo

This caused the window to be never disabled from vout_Stop().

7 days agoosx notifications: Use the players on_current_media_changed hook
David Fuhrmann [Mon, 15 Apr 2019 22:32:49 +0000 (00:32 +0200)]
osx notifications: Use the players on_current_media_changed hook

The previous implementation consistently used the old input item
to show its data. Now, the data of the new input is actually shown.

7 days agoosx notifications: Do not leak input item object
David Fuhrmann [Mon, 15 Apr 2019 21:59:00 +0000 (23:59 +0200)]
osx notifications: Do not leak input item object

7 days agomacosx: Document latest changes in vlc_player_cbs
David Fuhrmann [Mon, 15 Apr 2019 21:57:27 +0000 (23:57 +0200)]
macosx: Document latest changes in vlc_player_cbs

7 days agomacosx: player controller: Deindent code
David Fuhrmann [Mon, 15 Apr 2019 21:46:57 +0000 (23:46 +0200)]
macosx: player controller: Deindent code

7 days agomacosx: Fix short seeks
David Fuhrmann [Mon, 15 Apr 2019 21:18:37 +0000 (23:18 +0200)]
macosx: Fix short seeks

Player needs to be locked here.

7 days agomacosx: Fix title changed callback
David Fuhrmann [Mon, 15 Apr 2019 21:17:11 +0000 (23:17 +0200)]
macosx: Fix title changed callback

p_titles can be NULL, which cannot be retained.

7 days agomacOS packaging: Quote source paths, use designated variables
David Fuhrmann [Sun, 14 Apr 2019 11:56:10 +0000 (13:56 +0200)]
macOS packaging: Quote source paths, use designated variables

7 days agomacOS packaging: Simplify copy rule for libvlc
David Fuhrmann [Sun, 14 Apr 2019 11:37:29 +0000 (13:37 +0200)]
macOS packaging: Simplify copy rule for libvlc

7 days agomacosx/library window: don't block access to the playlist when using the detached...
Felix Paul Kühne [Mon, 15 Apr 2019 18:10:59 +0000 (20:10 +0200)]
macosx/library window: don't block access to the playlist when using the detached vout window mode

7 days agomacosx: rework communication between vout provider, library window and fspanel
Felix Paul Kühne [Mon, 15 Apr 2019 17:45:57 +0000 (19:45 +0200)]
macosx: rework communication between vout provider, library window and fspanel

This prevents frequent calls across multiple hierarchy levels and internalizes state knowledge.

7 days agomacosx: split hotkeys handling to a designated class
Felix Paul Kühne [Mon, 15 Apr 2019 16:58:07 +0000 (18:58 +0200)]
macosx: split hotkeys handling to a designated class

7 days agomacosx/bookmarks: disable the legacy code while retaining the UI for future re-use
Felix Paul Kühne [Mon, 15 Apr 2019 16:30:35 +0000 (18:30 +0200)]
macosx/bookmarks: disable the legacy code while retaining the UI for future re-use

Reimplementation depends on media libary exposing a feature comparable to bookmarks, which is scheduled in time for the 4.0 release

7 days agodemux: adaptive: inherit template defaults (fix #22047)
Francois Cartegnie [Mon, 15 Apr 2019 16:20:14 +0000 (18:20 +0200)]
demux: adaptive: inherit template defaults (fix #22047)

not the complete and efficient way.
we'll need a better inheritance fix at parsing level.

7 days agodemux: adaptive: store timeline directly
Francois Cartegnie [Mon, 15 Apr 2019 07:04:03 +0000 (09:04 +0200)]
demux: adaptive: store timeline directly

8 days agosnap: set QML import path for the Qt UI
Konstantin Pavlov [Mon, 15 Apr 2019 12:02:52 +0000 (15:02 +0300)]
snap: set QML import path for the Qt UI

8 days agosnap: Added new Qt dependencies
Konstantin Pavlov [Mon, 15 Apr 2019 11:02:42 +0000 (14:02 +0300)]
snap: Added new Qt dependencies

8 days agoqt: remove dead code
Thomas Guillem [Mon, 15 Apr 2019 09:54:29 +0000 (11:54 +0200)]
qt: remove dead code

Test leftovers.

8 days agoqt: put back b_hasWayland initialization
Thomas Guillem [Mon, 15 Apr 2019 09:53:21 +0000 (11:53 +0200)]
qt: put back b_hasWayland initialization

Regression from e1c82853965d44b4390af78d9184bd0b60ccc3fb

This was inadvertently removed during rebase/merge.

Fixes #22188

8 days agoRevert "libvlc: add leak debugging code"
Steve Lhomme [Mon, 15 Apr 2019 06:47:27 +0000 (08:47 +0200)]
Revert "libvlc: add leak debugging code"

This reverts commit 496001e6a204ce25a611163ed95e4b6721657bfe.

The objects don't leak anymore.

8 days agomacosx: remove the main window
Felix Paul Kühne [Sun, 14 Apr 2019 20:07:05 +0000 (22:07 +0200)]
macosx: remove the main window

8 days agomacosx/library window: add bottom bar
Felix Paul Kühne [Sun, 14 Apr 2019 14:12:28 +0000 (16:12 +0200)]
macosx/library window: add bottom bar

8 days agoRevert "decoder: fix type aliasing violation"
Rémi Denis-Courmont [Sun, 14 Apr 2019 19:09:32 +0000 (22:09 +0300)]
Revert "decoder: fix type aliasing violation"

This reverts commit 1a350d8db195f26fe6cdd389fa846364b15a602e.

8 days agoobjects: merge vlc_object_t and vlc_common_members
Rémi Denis-Courmont [Sun, 14 Apr 2019 19:09:02 +0000 (22:09 +0300)]
objects: merge vlc_object_t and vlc_common_members

This should fix historical aliasing issues.

8 days agoobjects: separate private data from public data
Rémi Denis-Courmont [Sun, 14 Apr 2019 15:18:56 +0000 (18:18 +0300)]
objects: separate private data from public data

Allocate the object private data separately - stop relying on alignment
and unconventional pointer arithmetic. This adds (internal) functions
to (de)initialize an object in place.

8 days agoobject: store a pointer to private data
Rémi Denis-Courmont [Sun, 14 Apr 2019 15:01:54 +0000 (18:01 +0300)]
object: store a pointer to private data

This effectively reverts commit 079986827291b3381495532cb0f754b131ccf246.

8 days agostl: remove invalid const qualifier
Rémi Denis-Courmont [Sun, 14 Apr 2019 19:01:35 +0000 (22:01 +0300)]
stl: remove invalid const qualifier

8 days agocontrib: Qt: check for 5.11+ after ae422ac67e1714169823fa819cf1681ea466d625
Sean McGovern [Sun, 14 Apr 2019 18:42:03 +0000 (14:42 -0400)]
contrib: Qt: check for 5.11+ after ae422ac67e1714169823fa819cf1681ea466d625

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 days agoobjects: make VLC_OBJECT() type-safe in C++
Rémi Denis-Courmont [Sun, 14 Apr 2019 18:25:32 +0000 (21:25 +0300)]
objects: make VLC_OBJECT() type-safe in C++

(again)

9 days agodecoder: fix type aliasing violation
Rémi Denis-Courmont [Sun, 14 Apr 2019 14:02:00 +0000 (17:02 +0300)]
decoder: fix type aliasing violation

In file included from ../../include/vlc_common.h:1190,
                 from ../../src/input/decoder_helpers.c:29:
../../src/input/decoder_helpers.c: In function ‘vlc_decoder_device_Create’:
../../include/vlc_modules.h:70:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             vlc_module_load(vlc_object_logger((vlc_object_t *)(ctx)), cap, \
../../include/vlc_objects.h:64:15: note: in definition of macro ‘VLC_OBJECT’
     _Generic((x)->obj, \
               ^
../../include/vlc_modules.h:70:29: note: in expansion of macro ‘vlc_object_logger’
             vlc_module_load(vlc_object_logger((vlc_object_t *)(ctx)), cap, \
                             ^~~~~~~~~~~~~~~~~
../../src/input/decoder_helpers.c:135:20: note: in expansion of macro ‘vlc_module_load’
     priv->module = vlc_module_load(&priv->device, "decoder device", name,
                    ^~~~~~~~~~~~~~~

9 days agomacosx/applescript: fix object initialization
Felix Paul Kühne [Sun, 14 Apr 2019 13:59:45 +0000 (15:59 +0200)]
macosx/applescript: fix object initialization

9 days agognutls: require version 3.5.0+
Rémi Denis-Courmont [Sun, 14 Apr 2019 12:53:17 +0000 (15:53 +0300)]
gnutls: require version 3.5.0+

9 days agocontrib: gnutls: require version 3.5.0
Rémi Denis-Courmont [Sun, 14 Apr 2019 12:50:05 +0000 (15:50 +0300)]
contrib: gnutls: require version 3.5.0

9 days agocontrib: gnutls: update to 3.6.7 (fixes #21951)
Rémi Denis-Courmont [Sun, 14 Apr 2019 12:46:55 +0000 (15:46 +0300)]
contrib: gnutls: update to 3.6.7 (fixes #21951)

9 days agowin32: wrap {g,s}etsockopt()
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:41:38 +0000 (09:41 +0300)]
win32: wrap {g,s}etsockopt()

char * can alias anything, and Winsock relies on that. Unfortunately,
the compiler still issues warnings. This works around that.

9 days agod3d11: fix format string
Rémi Denis-Courmont [Sun, 14 Apr 2019 07:15:20 +0000 (10:15 +0300)]
d3d11: fix format string

9 days agoavi: fix format string
Rémi Denis-Courmont [Sun, 14 Apr 2019 07:15:11 +0000 (10:15 +0300)]
avi: fix format string

9 days agooldrc: fix warning
Rémi Denis-Courmont [Sun, 14 Apr 2019 07:04:05 +0000 (10:04 +0300)]
oldrc: fix warning

9 days agooldrc: fix format strings
Rémi Denis-Courmont [Sun, 14 Apr 2019 07:03:30 +0000 (10:03 +0300)]
oldrc: fix format strings

Fix support for 32-bits platforms.
Regression from 46ea30cd17ef8a33eceac23fdd1c2506ad51c00c.

9 days agowasapi: fix variable shadowing
Rémi Denis-Courmont [Sun, 14 Apr 2019 07:01:01 +0000 (10:01 +0300)]
wasapi: fix variable shadowing

9 days agowasapi: fix fallthrough warnings
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:55:13 +0000 (09:55 +0300)]
wasapi: fix fallthrough warnings

9 days agodshow: remove unused variable
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:55:06 +0000 (09:55 +0300)]
dshow: remove unused variable

9 days agonetwork: fix unused function warning
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:53:18 +0000 (09:53 +0300)]
network: fix unused function warning

9 days agonetwork: do not assume socklen_t is unsigned
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:52:35 +0000 (09:52 +0300)]
network: do not assume socklen_t is unsigned

This is not guaranteed.

9 days agoconfigure: socklen_t should be unsigned
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:47:40 +0000 (09:47 +0300)]
configure: socklen_t should be unsigned

Originally, POSIX made it unsigned. This was relaxed in newer releases,
but unsigned makes more sense anyway since it expressses a size.

9 days agowin32: mute unused argument warnings
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:41:15 +0000 (09:41 +0300)]
win32: mute unused argument warnings

9 days agosdp: fix mismatched type, fix warning
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:35:08 +0000 (09:35 +0300)]
sdp: fix mismatched type, fix warning

9 days agocompat: missing #include, fix warning
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:32:58 +0000 (09:32 +0300)]
compat: missing #include, fix warning

9 days agoconfig: mute warning
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:32:50 +0000 (09:32 +0300)]
config: mute warning

9 days agovlm: fix warning
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:29:14 +0000 (09:29 +0300)]
vlm: fix warning

9 days agoblock: mute a warning
Rémi Denis-Courmont [Sun, 14 Apr 2019 06:29:03 +0000 (09:29 +0300)]
block: mute a warning

9 days agomacosx: remove core interaction singleton
Felix Paul Kühne [Sat, 13 Apr 2019 20:07:45 +0000 (22:07 +0200)]
macosx: remove core interaction singleton

9 days agomacosx/windows: remove dependency on core interaction singleton
Felix Paul Kühne [Sat, 13 Apr 2019 20:01:33 +0000 (22:01 +0200)]
macosx/windows: remove dependency on core interaction singleton

9 days agomacosx/main window controlsbar: remove dependency on core interaction singleton
Felix Paul Kühne [Sat, 13 Apr 2019 19:45:13 +0000 (21:45 +0200)]
macosx/main window controlsbar: remove dependency on core interaction singleton

9 days agomacosx/remote control service: remove dependency on core interaction singleton
Felix Paul Kühne [Sat, 13 Apr 2019 19:42:03 +0000 (21:42 +0200)]
macosx/remote control service: remove dependency on core interaction singleton

This also improves error reporting to the OS for actions that can fail.

9 days agomacosx/main menu: remove dependency on core interaction singleton
Felix Paul Kühne [Sat, 13 Apr 2019 19:23:08 +0000 (21:23 +0200)]
macosx/main menu: remove dependency on core interaction singleton

9 days agomacosx/apple script: remove dependency on core interaction singleton
Felix Paul Kühne [Sat, 13 Apr 2019 19:19:32 +0000 (21:19 +0200)]
macosx/apple script: remove dependency on core interaction singleton

9 days agomacosx/clicker manager: remove dependency on core interaction singleton
Felix Paul Kühne [Sat, 13 Apr 2019 19:01:14 +0000 (21:01 +0200)]
macosx/clicker manager: remove dependency on core interaction singleton

9 days agomacosx/vout window: fix dynamic titles
Felix Paul Kühne [Sat, 13 Apr 2019 18:28:57 +0000 (20:28 +0200)]
macosx/vout window: fix dynamic titles

9 days agomacosx/player: add notification when a media's metadata changes
Felix Paul Kühne [Sat, 13 Apr 2019 18:02:26 +0000 (20:02 +0200)]
macosx/player: add notification when a media's metadata changes

9 days agomacosx/control bar: cleanup and small fixes
Felix Paul Kühne [Sat, 13 Apr 2019 17:56:19 +0000 (19:56 +0200)]
macosx/control bar: cleanup and small fixes

This reimplements navigation with chapters and sets the player button state correctly in detached vout windows

9 days agomacosx: fix intf variable callbacks
Felix Paul Kühne [Sat, 13 Apr 2019 17:37:34 +0000 (19:37 +0200)]
macosx: fix intf variable callbacks

9 days agominimal macosx: remove unneeded include
Felix Paul Kühne [Sat, 13 Apr 2019 16:37:35 +0000 (18:37 +0200)]
minimal macosx: remove unneeded include

9 days agonotify: update macOS plugin to use the new playlist
Felix Paul Kühne [Sat, 13 Apr 2019 16:20:41 +0000 (18:20 +0200)]
notify: update macOS plugin to use the new playlist

9 days agowindow: allow inhibit the screensaver only in fullscreen
Rémi Denis-Courmont [Sat, 13 Apr 2019 16:21:59 +0000 (19:21 +0300)]
window: allow inhibit the screensaver only in fullscreen

Fixes #8912.

9 days agoinhibit: add third choice for disable-screensaver
Rémi Denis-Courmont [Sat, 13 Apr 2019 16:00:16 +0000 (19:00 +0300)]
inhibit: add third choice for disable-screensaver

This retains the existing meanings of 0 and 1 for backward
compatibility with existing vlcrc files. 2 is added for fullscreen-only
inhibit (refs #8912).

9 days agowindow: track active (not paused) state internally
Rémi Denis-Courmont [Sat, 30 Mar 2019 13:12:31 +0000 (15:12 +0200)]
window: track active (not paused) state internally

9 days agowindow: track fullscreen state internally
Rémi Denis-Courmont [Sat, 30 Mar 2019 12:58:23 +0000 (14:58 +0200)]
window: track fullscreen state internally

9 days agowindow: deinline window/fullscreen event callbacks
Rémi Denis-Courmont [Sat, 30 Mar 2019 12:23:06 +0000 (14:23 +0200)]
window: deinline window/fullscreen event callbacks

9 days agowindow: minor code factorization
Rémi Denis-Courmont [Sat, 30 Mar 2019 13:03:31 +0000 (15:03 +0200)]
window: minor code factorization

10 days agoobject: missing initializer
Rémi Denis-Courmont [Sat, 13 Apr 2019 14:55:45 +0000 (17:55 +0300)]
object: missing initializer

10 days agovariables: remove dead code
Rémi Denis-Courmont [Sat, 13 Apr 2019 15:07:38 +0000 (18:07 +0300)]
variables: remove dead code

10 days agoobjects: remove vlc_object_find_name() and associates
Rémi Denis-Courmont [Sat, 13 Apr 2019 15:10:31 +0000 (18:10 +0300)]
objects: remove vlc_object_find_name() and associates

10 days agoobjects: remove dead code
Rémi Denis-Courmont [Sat, 13 Apr 2019 15:07:12 +0000 (18:07 +0300)]
objects: remove dead code

10 days agoobjects: remove undocumented "tree" command
Rémi Denis-Courmont [Sat, 13 Apr 2019 15:05:33 +0000 (18:05 +0300)]
objects: remove undocumented "tree" command

Like "vars", this is left-over from vlc_object_find_name().
See also 22442b4fe9ac4277c1a7b36be345ef5a93b0e8ad.

10 days agomacosx: remove more legacy playlist code
Felix Paul Kühne [Sat, 13 Apr 2019 15:42:47 +0000 (17:42 +0200)]
macosx: remove more legacy playlist code

This patch removes the dysfunctional sidebar and podcast integration

10 days agomacosx/continuity controller: fix deadlock
Felix Paul Kühne [Sat, 13 Apr 2019 15:35:25 +0000 (17:35 +0200)]
macosx/continuity controller: fix deadlock

10 days agocontrib: remove exclamation mark in errors
Rémi Denis-Courmont [Sat, 13 Apr 2019 07:37:37 +0000 (10:37 +0300)]
contrib: remove exclamation mark in errors

GNU/make already appends a dot, so it looked weird.

10 days agosamba: combine result and error status
Rémi Denis-Courmont [Wed, 10 Apr 2019 16:41:53 +0000 (19:41 +0300)]
samba: combine result and error status

10 days agosamba: remove unused argument
Rémi Denis-Courmont [Wed, 10 Apr 2019 16:33:36 +0000 (19:33 +0300)]
samba: remove unused argument

10 days agocontrib: opus: update to 1.3.1
Tristan Matthews [Sat, 13 Apr 2019 04:41:10 +0000 (00:41 -0400)]
contrib: opus: update to 1.3.1

11 days agomacosx: refactor input manager remnants
Felix Paul Kühne [Thu, 11 Apr 2019 17:22:36 +0000 (19:22 +0200)]
macosx: refactor input manager remnants

11 days agomacosx/main menu: reimplement playlist export
Felix Paul Kühne [Thu, 11 Apr 2019 16:38:11 +0000 (18:38 +0200)]
macosx/main menu: reimplement playlist export

11 days agomacosx/playlist: expose export feature
Felix Paul Kühne [Thu, 11 Apr 2019 16:35:29 +0000 (18:35 +0200)]
macosx/playlist: expose export feature

11 days agomacosx/playlist: expose the respective playlist controller as sender in notifications
Felix Paul Kühne [Wed, 10 Apr 2019 16:55:32 +0000 (18:55 +0200)]
macosx/playlist: expose the respective playlist controller as sender in notifications