vlc.git
4 years agomacosx: Add VLCHexNumberFormatter
Marvin Scholz [Sat, 1 Jul 2017 14:41:17 +0000 (16:41 +0200)]
macosx: Add VLCHexNumberFormatter

Adds a number formatter used for hex color text fields in the video
effects panel.

4 years agomacosx: open panel: Allow MRL text to be clicked as well
David Fuhrmann [Sat, 1 Jul 2017 14:49:31 +0000 (16:49 +0200)]
macosx: open panel: Allow MRL text to be clicked as well

Now, MRL text can be clicked to expand MRL view. This expands
clickable area.

4 years agomacosx: open panel: Fix foldable MRL field
David Fuhrmann [Sat, 1 Jul 2017 14:27:06 +0000 (16:27 +0200)]
macosx: open panel: Fix foldable MRL field

Integrate MRL view into autolayout hierarchy of the open panel.
Add height constraint to hide the view.

4 years agomacosx: Fix misplacement warnings in simple preferences
David Fuhrmann [Sat, 1 Jul 2017 11:05:31 +0000 (13:05 +0200)]
macosx: Fix misplacement warnings in simple preferences

4 years agord/bonjour: Use Chromecast name and model from TXT record
Marvin Scholz [Sat, 24 Jun 2017 18:15:26 +0000 (20:15 +0200)]
rd/bonjour: Use Chromecast name and model from TXT record

Extract the Chromecast name and model from the TXT records ("md", "fn")
and use them as name, if available, to make it easier to identify the
Chromecast.

4 years agomacosx: Implement renderer discovery as NSMenu
Marvin Scholz [Sat, 24 Jun 2017 16:56:17 +0000 (18:56 +0200)]
macosx: Implement renderer discovery as NSMenu

4 years agomacosx: make the vout window mouse-moveable again (closes #18263)
Felix Paul Kühne [Sat, 1 Jul 2017 13:06:24 +0000 (15:06 +0200)]
macosx: make the vout window mouse-moveable again (closes #18263)

4 years agomacosx: fix video effect adjust reset button
Felix Paul Kühne [Sat, 1 Jul 2017 11:17:14 +0000 (13:17 +0200)]
macosx: fix video effect adjust reset button

4 years agomacosx: Improve layout of controls bars
David Fuhrmann [Sat, 1 Jul 2017 10:57:02 +0000 (12:57 +0200)]
macosx: Improve layout of controls bars

Increase spacing a bit so it looks more clean.

4 years agomacosx: Cleanup code, use var_InheritBool for controls bar config
David Fuhrmann [Sat, 1 Jul 2017 10:25:58 +0000 (12:25 +0200)]
macosx: Cleanup code, use var_InheritBool for controls bar config

Use var_InheritBool for all appearance settings affecting the
controls bar. Cleanup code and remove unnecessary variables.

4 years agomacosx: Fix animation of prev / next buttons
David Fuhrmann [Sat, 1 Jul 2017 10:01:26 +0000 (12:01 +0200)]
macosx: Fix animation of prev / next buttons

4 years agomacosx: Fix animation for effects button
David Fuhrmann [Sat, 1 Jul 2017 09:52:49 +0000 (11:52 +0200)]
macosx: Fix animation for effects button

4 years agomacosx: Fix animations for playmode buttons in controls bar
David Fuhrmann [Sat, 1 Jul 2017 09:37:14 +0000 (11:37 +0200)]
macosx: Fix animations for playmode buttons in controls bar

4 years agomacOS: Add nullability specifier
Marvin Scholz [Sat, 1 Jul 2017 10:47:48 +0000 (12:47 +0200)]
macOS: Add nullability specifier

4 years agoMac build script: add clean contrib option
Felix Paul Kühne [Thu, 14 Jul 2016 13:36:20 +0000 (15:36 +0200)]
Mac build script: add clean contrib option

4 years agogl: vaapi: fix VADisplay leak in error path
Thomas Guillem [Thu, 29 Jun 2017 14:55:58 +0000 (16:55 +0200)]
gl: vaapi: fix VADisplay leak in error path

4 years agogl: vaapi: move code
Thomas Guillem [Thu, 29 Jun 2017 14:45:36 +0000 (16:45 +0200)]
gl: vaapi: move code

4 years agovout: android: use opaque if forced
Thomas Guillem [Fri, 30 Jun 2017 09:57:46 +0000 (11:57 +0200)]
vout: android: use opaque if forced

4 years agovout: android: add a shortcut for android-opaque
Thomas Guillem [Fri, 30 Jun 2017 09:57:25 +0000 (11:57 +0200)]
vout: android: add a shortcut for android-opaque

4 years agocore: module: Fix wrong variable being used.
Hugo Beauzée-Luyssen [Fri, 30 Jun 2017 08:59:50 +0000 (10:59 +0200)]
core: module: Fix wrong variable being used.

Fixes regression introduced by 9bf573128c61dae322f79b15700e9b3e3a1d5400

4 years agoconfigure: add shadow=local warning
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:32:49 +0000 (23:32 +0300)]
configure: add shadow=local warning

4 years agoinput: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:32:39 +0000 (23:32 +0300)]
input: fix variable shadowing

4 years agomarq: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:31:12 +0000 (23:31 +0300)]
marq: fix variable shadowing

4 years agorecord: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:29:14 +0000 (23:29 +0300)]
record: fix variable shadowing

4 years agosap: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:28:19 +0000 (23:28 +0300)]
sap: fix variable shadowing

4 years agosap: annotate fall through
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:26:52 +0000 (23:26 +0300)]
sap: annotate fall through

4 years agoudev: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:22:05 +0000 (23:22 +0300)]
udev: fix variable shadowing

4 years agoncurses: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:20:12 +0000 (23:20 +0300)]
ncurses: fix variable shadowing

4 years agots: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:19:18 +0000 (23:19 +0300)]
ts: fix variable shadowing

4 years agots: fix potential signed overflow
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:15:39 +0000 (23:15 +0300)]
ts: fix potential signed overflow

4 years agomp4: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:12:05 +0000 (23:12 +0300)]
mp4: fix variable shadowing

4 years agoh264: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:10:03 +0000 (23:10 +0300)]
h264: fix variable shadowing

4 years agoavi: fix format string
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:09:20 +0000 (23:09 +0300)]
avi: fix format string

4 years agoavi: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:08:21 +0000 (23:08 +0300)]
avi: fix variable shadowing

4 years agoavformat: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 20:04:28 +0000 (23:04 +0300)]
avformat: fix variable shadowing

4 years agosubtitle: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:59:41 +0000 (22:59 +0300)]
subtitle: fix variable shadowing

4 years agolibass: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:58:59 +0000 (22:58 +0300)]
libass: fix variable shadowing

4 years agodvbsub: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:58:52 +0000 (22:58 +0300)]
dvbsub: fix variable shadowing

4 years agolivehttp: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:58:39 +0000 (22:58 +0300)]
livehttp: fix variable shadowing

4 years agomms: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:45:58 +0000 (22:45 +0300)]
mms: fix variable shadowing

4 years agomodules: fix variable shadowing
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:44:26 +0000 (22:44 +0300)]
modules: fix variable shadowing

4 years agoasf: fix fall through comment
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:34:25 +0000 (22:34 +0300)]
asf: fix fall through comment

4 years agovod: fix fall through annotations
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:32:22 +0000 (22:32 +0300)]
vod: fix fall through annotations

4 years agoxcb: fix fall through annotation
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:30:51 +0000 (22:30 +0300)]
xcb: fix fall through annotation

4 years agoadaptive: fix fall through warnings
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:26:55 +0000 (22:26 +0300)]
adaptive: fix fall through warnings

4 years agoes_out: fix fall through warnings
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:25:40 +0000 (22:25 +0300)]
es_out: fix fall through warnings

4 years agoaraw: annotate fall through
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:25:12 +0000 (22:25 +0300)]
araw: annotate fall through

4 years agopulse: annotate fall through
Rémi Denis-Courmont [Thu, 29 Jun 2017 19:24:56 +0000 (22:24 +0300)]
pulse: annotate fall through

4 years agoaccess: bluray: correct asprintf usage
Francois Cartegnie [Thu, 29 Jun 2017 16:56:59 +0000 (18:56 +0200)]
access: bluray: correct asprintf usage

4 years agoplaylist/m3u: fix file type checks
Rémi Denis-Courmont [Thu, 29 Jun 2017 16:31:08 +0000 (19:31 +0300)]
playlist/m3u: fix file type checks

4 years agoplaylist/m3u: separate type and encoding checks
Rémi Denis-Courmont [Thu, 29 Jun 2017 16:27:09 +0000 (19:27 +0300)]
playlist/m3u: separate type and encoding checks

Also fix offset in HLS matching.

4 years agoplaylist/m3u: fix missing error handling
Rémi Denis-Courmont [Thu, 29 Jun 2017 16:26:03 +0000 (19:26 +0300)]
playlist/m3u: fix missing error handling

4 years agoplaylist/m3u: split HLS to separate function
Rémi Denis-Courmont [Thu, 29 Jun 2017 16:24:20 +0000 (19:24 +0300)]
playlist/m3u: split HLS to separate function

4 years agodirect3d11: remove dead code
Steve Lhomme [Fri, 23 Jun 2017 07:32:05 +0000 (09:32 +0200)]
direct3d11: remove dead code

The pool configuration is done later for all use cases.

Ref CID #1402665

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agovout:directd9: don't compile shaders if the headers are not available
Steve Lhomme [Mon, 12 Jun 2017 07:47:39 +0000 (09:47 +0200)]
vout:directd9: don't compile shaders if the headers are not available

It's not found in MS headers anymore, only the old DirectX SDK from 2010.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agoremove X11BypassWindowManagerHint from time tooltip
Mathieu Velten [Wed, 28 Jun 2017 19:29:40 +0000 (21:29 +0200)]
remove X11BypassWindowManagerHint from time tooltip

Fixes #17829

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodecoder: check visible size on vout fmt update
Francois Cartegnie [Thu, 29 Jun 2017 09:06:16 +0000 (11:06 +0200)]
decoder: check visible size on vout fmt update

early reject invalid visible size
mishandled by filters.

refs #18467

4 years agocodec: avcodec: check avcodec visible sizes
Francois Cartegnie [Thu, 29 Jun 2017 07:49:37 +0000 (09:49 +0200)]
codec: avcodec: check avcodec visible sizes

refs #18467

4 years agoreduce vpx decoder priority under libavcodec
Mathieu Velten [Wed, 28 Jun 2017 19:26:50 +0000 (21:26 +0200)]
reduce vpx decoder priority under libavcodec

Faster and supports HW decoding

Signed-off-by: Tristan Matthews <tmatth@videolan.org>
4 years agoplaylist/m3u: remove unused parameter
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:50:22 +0000 (23:50 +0300)]
playlist/m3u: remove unused parameter

4 years agoplaylist/m3u: add some other unofficial Content-Type values
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:47:44 +0000 (23:47 +0300)]
playlist/m3u: add some other unofficial Content-Type values

4 years agoplaylist/m3u: ignore input with HLS-specific Content-Type
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:40:28 +0000 (23:40 +0300)]
playlist/m3u: ignore input with HLS-specific Content-Type

4 years agoavparser: fix function parameters
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:17:42 +0000 (23:17 +0300)]
avparser: fix function parameters

4 years agohls: fix bool in arithmetic context warning
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:16:08 +0000 (23:16 +0300)]
hls: fix bool in arithmetic context warning

4 years agommx: remove dead Y211 code
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:14:29 +0000 (23:14 +0300)]
mmx: remove dead Y211 code

4 years agoivtc: comment out unused data
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:08:41 +0000 (23:08 +0300)]
ivtc: comment out unused data

4 years agots: fix duplicate qualifier, add missing 'static'
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:05:10 +0000 (23:05 +0300)]
ts: fix duplicate qualifier, add missing 'static'

4 years agovaapi: fix duplicate const qualifier
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:04:04 +0000 (23:04 +0300)]
vaapi: fix duplicate const qualifier

4 years agoidummy: remove stray declaration
Rémi Denis-Courmont [Wed, 28 Jun 2017 20:00:11 +0000 (23:00 +0300)]
idummy: remove stray declaration

4 years agoinput: fix missing declaration warning
Rémi Denis-Courmont [Wed, 28 Jun 2017 19:54:21 +0000 (22:54 +0300)]
input: fix missing declaration warning

4 years agokaraoke: drop unused include
Tristan Matthews [Wed, 28 Jun 2017 04:12:32 +0000 (00:12 -0400)]
karaoke: drop unused include

4 years agomacOS: Workaround for VLCDefaultValueSlider misaligned default tickmark
Marvin Scholz [Wed, 28 Jun 2017 16:04:03 +0000 (18:04 +0200)]
macOS: Workaround for VLCDefaultValueSlider misaligned default tickmark

Ugly workaround for alignment issues on non-retina displays on macOS
10.10 and higher.

4 years agomacOS: Fix VLCFullScreenPanel volume slider frame size
Marvin Scholz [Wed, 28 Jun 2017 13:31:29 +0000 (15:31 +0200)]
macOS: Fix VLCFullScreenPanel volume slider frame size

4 years agoadpcm: don't modify dec->fmt_in
Thomas Guillem [Wed, 28 Jun 2017 15:10:39 +0000 (17:10 +0200)]
adpcm: don't modify dec->fmt_in

A decoder can only modify fmt_out from the probe function.

4 years agoopengl: vaapi: fix build with gles2
Thomas Guillem [Wed, 28 Jun 2017 09:24:22 +0000 (11:24 +0200)]
opengl: vaapi: fix build with gles2

4 years agocontrib: opus: update to 1.2.1 point release
Tristan Matthews [Tue, 27 Jun 2017 22:17:32 +0000 (18:17 -0400)]
contrib: opus: update to 1.2.1 point release

Fixes "a relatively rare issue where the 1.2 encoder would wrongly assume a
signal to be bandlimited to 12 kHz and not encode frequencies between 12 and
20 kHz"

4 years agomacOS: Fix partial availability error in VLCHUDSliderCell
Marvin Scholz [Tue, 27 Jun 2017 14:13:11 +0000 (14:13 +0000)]
macOS: Fix partial availability error in VLCHUDSliderCell

drawTickMarks is only available on 10.9 and higher according to header
files, we only call super drawTickMarks on OSX_YOSEMITE_AND_HIGHER
though, so it is safe to ignore this here.

4 years agomarq: remove wrong x offset
Victorien Le Couviour--Tuffet [Tue, 27 Jun 2017 14:16:26 +0000 (16:16 +0200)]
marq: remove wrong x offset

This value is used as an unsigned in the vout and therefore causes an overflow
when the alignement contains SUBPICTURE_ALIGN_LEFT, which as the result of
having a text displayed at 426xxx in x. This value is supposed to be the
relative position from the alignement, and should therefore be 0 (as it always
is when opening the module and retrieving the alignement).

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agohw: vaapi-deint: try both motion algorithms as X
Victorien Le Couviour--Tuffet [Tue, 27 Jun 2017 14:00:52 +0000 (16:00 +0200)]
hw: vaapi-deint: try both motion algorithms as X

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agohw: vaapi-deint: fix incorrect backward/forward reference ordering
Oliver Collyer [Tue, 27 Jun 2017 12:58:48 +0000 (15:58 +0300)]
hw: vaapi-deint: fix incorrect backward/forward reference ordering

After testing the Motion Adaptive deinterlacing mode and finding it produced
lots of flicker/judder and not much deinterlacing I traced the error back to
the below.

Although it seems a little counter-intuitive, the "forward_refs" are actually
the frames older than the current one, and the "backward_refs" are those later.

In addition, the forward_refs (previously the backward_refs) have to be ordered
such that [0] is most recent, [1] older, etc; before this patch it was the
opposite.

Just to be 100% sure, I have also cross-referenced this approach with how
FFmpeg does it:

https://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavfilter/vf_deinterlace_vaapi.c;hb=HEAD

See function deint_vaapi_filter_frame.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agoRevert "aout: simplify, remove unset_str[]"
Thomas Guillem [Tue, 27 Jun 2017 13:52:59 +0000 (15:52 +0200)]
Revert "aout: simplify, remove unset_str[]"

This broke the ability to unset an audio device.

This reverts commit 4074b544fb288b0703f4b8160c9feed6ecb8a318.

4 years agoplaylist: m3u: unbreak HLS
Francois Cartegnie [Tue, 27 Jun 2017 12:35:22 +0000 (14:35 +0200)]
playlist: m3u: unbreak HLS

adaptive broken by 84a0cc9fa09855b92d2c179f8976b2ef7f3368e7

4 years agoaout: simplify, remove unset_str[]
Thomas Guillem [Tue, 27 Jun 2017 08:52:05 +0000 (10:52 +0200)]
aout: simplify, remove unset_str[]

4 years agocontrib: libarchive: Fix winrt build
Hugo Beauzée-Luyssen [Mon, 26 Jun 2017 15:07:36 +0000 (17:07 +0200)]
contrib: libarchive: Fix winrt build

4 years agod3d11va: Fix UWP build
Hugo Beauzée-Luyssen [Mon, 26 Jun 2017 12:04:41 +0000 (14:04 +0200)]
d3d11va: Fix UWP build

4 years agodxva2: fix height used for the decoding buffers
Steve Lhomme [Mon, 26 Jun 2017 16:05:03 +0000 (18:05 +0200)]
dxva2: fix height used for the decoding buffers

4 years agocodec: mad: fix use after free
Francois Cartegnie [Mon, 26 Jun 2017 12:41:36 +0000 (14:41 +0200)]
codec: mad: fix use after free

4 years agovlc_subpicture: add balanced text region flag
Francois Cartegnie [Mon, 26 Jun 2017 12:09:02 +0000 (14:09 +0200)]
vlc_subpicture: add balanced text region flag

By default width of wrapped lines tries to be balanced.
This is only relevant for displaying subtitles.

4 years agodshow: Use vlc_mta_holder
Hugo Beauzée-Luyssen [Mon, 12 Jun 2017 15:12:11 +0000 (17:12 +0200)]
dshow: Use vlc_mta_holder

4 years agowin32: Add a vlc_mta_holder
Hugo Beauzée-Luyssen [Wed, 14 Jun 2017 08:27:32 +0000 (10:27 +0200)]
win32: Add a vlc_mta_holder

This small helper will hold on to the MTA to ensure it won't be
destroyed between two calls to CoInitializeEx.
This will help us not leaking our TA configurations to libvlc/libvlccore
threads

4 years agodshow: Use MTA and stop leaking thread context out of the module
Hugo Beauzée-Luyssen [Tue, 30 May 2017 16:44:18 +0000 (18:44 +0200)]
dshow: Use MTA and stop leaking thread context out of the module

Fix #16935

4 years agohds: Fix potential null dereference
Hugo Beauzée-Luyssen [Mon, 26 Jun 2017 09:44:40 +0000 (11:44 +0200)]
hds: Fix potential null dereference

CID #403185

4 years agosubtitle: Don't call strcasestr twice
Hugo Beauzée-Luyssen [Mon, 26 Jun 2017 08:28:27 +0000 (10:28 +0200)]
subtitle: Don't call strcasestr twice

refs CID #1446911

4 years agotext_renderer: freetype: fix next line alignment on line break
Francois Cartegnie [Mon, 26 Jun 2017 10:37:24 +0000 (12:37 +0200)]
text_renderer: freetype: fix next line alignment on line break

4 years agotext_renderer: test flags only using their defined values
Francois Cartegnie [Sun, 25 Jun 2017 15:15:10 +0000 (17:15 +0200)]
text_renderer: test flags only using their defined values

4 years agomacOS: Fix logical flaws in VLCRendererDiscovery
Marvin Scholz [Sat, 24 Jun 2017 16:35:28 +0000 (18:35 +0200)]
macOS: Fix logical flaws in VLCRendererDiscovery

4 years agomacOS: Add missing array initialization
Marvin Scholz [Sat, 24 Jun 2017 16:35:01 +0000 (18:35 +0200)]
macOS: Add missing array initialization

4 years agomacOS: Implement isEqual for VLCRendererItem
Marvin Scholz [Sat, 24 Jun 2017 16:33:49 +0000 (18:33 +0200)]
macOS: Implement isEqual for VLCRendererItem

4 years agomacOS: Fix hardly visible buttons on <10.10
Marvin Scholz [Sat, 24 Jun 2017 12:14:43 +0000 (14:14 +0200)]
macOS: Fix hardly visible buttons on <10.10

4 years agomacOS: Add VLCTintedImageButtonCell
Marvin Scholz [Sat, 24 Jun 2017 12:13:36 +0000 (14:13 +0200)]
macOS: Add VLCTintedImageButtonCell

This is a class for macOS versions lower than 10.10, where some image
buttons on dark backgrounds (or other colored backgrounds) would draw in
a dark color (usually black, for template images).
With this class, a tint color can be set for these buttons, it defaults
to white. This class is only intended to be used with template images.