vlc.git
2 years agomacosx: Correct drawing of Volume slider in RTL mode
Marvin Scholz [Wed, 2 Aug 2017 14:09:34 +0000 (16:09 +0200)]
macosx: Correct drawing of Volume slider in RTL mode

2 years agoaudio output: Allow i_physical_channels to be unset when using pass through
Hugo Beauzée-Luyssen [Tue, 1 Aug 2017 11:20:00 +0000 (13:20 +0200)]
audio output: Allow i_physical_channels to be unset when using pass through

Fix #18614

2 years agopacketizer: mpegvideo: use enum for values
Francois Cartegnie [Tue, 1 Aug 2017 14:10:36 +0000 (16:10 +0200)]
packetizer: mpegvideo: use enum for values

should clear things up

2 years agopacketizer: mpegvideo: simplify cc flags handling
Francois Cartegnie [Tue, 1 Aug 2017 13:56:18 +0000 (15:56 +0200)]
packetizer: mpegvideo: simplify cc flags handling

2 years agodemux: adaptive: signal buffering state change in both cases
Zhao Zhili [Fri, 28 Jul 2017 08:43:28 +0000 (16:43 +0800)]
demux: adaptive: signal buffering state change in both cases

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
2 years agodemux: adaptive: fix slow buffering
Zhao Zhili [Fri, 28 Jul 2017 11:54:50 +0000 (19:54 +0800)]
demux: adaptive: fix slow buffering

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
2 years agodemux: adaptive: fix debug log
Zhao Zhili [Mon, 31 Jul 2017 08:01:44 +0000 (16:01 +0800)]
demux: adaptive: fix debug log

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
2 years agodirect3d11: fix inverted logic for sides clamping issue
Steve Lhomme [Tue, 1 Aug 2017 09:22:49 +0000 (11:22 +0200)]
direct3d11: fix inverted logic for sides clamping issue

Fixes #18631

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agovout_subpicture: patch fully transparent menu palette
Francois Cartegnie [Tue, 1 Aug 2017 07:19:24 +0000 (09:19 +0200)]
vout_subpicture: patch fully transparent menu palette

2 years agodirect3d11: use all the RECT used for the picture placement to detect changes
Steve Lhomme [Mon, 31 Jul 2017 13:29:14 +0000 (15:29 +0200)]
direct3d11: use all the RECT used for the picture placement to detect changes

Otherwise there are some cases where resizing occurs but not updated on the
display.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 years agopacketizer: mpegvideo: don't output slice on sequence extension
Francois Cartegnie [Mon, 31 Jul 2017 20:26:09 +0000 (22:26 +0200)]
packetizer: mpegvideo: don't output slice on sequence extension

2 years agopanoramix: remove shadowing variable
Rémi Denis-Courmont [Mon, 31 Jul 2017 18:30:09 +0000 (21:30 +0300)]
panoramix: remove shadowing variable

2 years agoUnexport video_splitter_(New|Delete)
Rémi Denis-Courmont [Mon, 31 Jul 2017 18:30:08 +0000 (21:30 +0300)]
Unexport video_splitter_(New|Delete)

2 years agovout: rename one variable for clarity
Rémi Denis-Courmont [Mon, 31 Jul 2017 18:12:33 +0000 (21:12 +0300)]
vout: rename one variable for clarity

2 years agovout: shrink struct member
Rémi Denis-Courmont [Mon, 31 Jul 2017 18:07:18 +0000 (21:07 +0300)]
vout: shrink struct member

This can only take values -1, 0 and 1.

2 years agovout: remove write-only struct member
Rémi Denis-Courmont [Mon, 31 Jul 2017 18:06:39 +0000 (21:06 +0300)]
vout: remove write-only struct member

2 years agomacosx: Remove unnecessary progressbar images
Marvin Scholz [Mon, 31 Jul 2017 16:44:57 +0000 (18:44 +0200)]
macosx: Remove unnecessary progressbar images

2 years agomacosx: Remove unnecessary volume slider images
Marvin Scholz [Mon, 31 Jul 2017 16:40:33 +0000 (18:40 +0200)]
macosx: Remove unnecessary volume slider images

2 years agoadaptive: always call get_empty
Francois Cartegnie [Wed, 19 Jul 2017 16:42:58 +0000 (18:42 +0200)]
adaptive: always call get_empty

As it should no longer freeze with audio

2 years agoinput: decoder: don't wait for aout drain on non eof
Francois Cartegnie [Fri, 28 Jul 2017 13:37:10 +0000 (15:37 +0200)]
input: decoder: don't wait for aout drain on non eof

If there's no way to wait for aout drain without
draining (on EOF), don't wait indefinitively.

2 years agoes_out: ask for decoder drain on es_out_Del
Francois Cartegnie [Fri, 28 Jul 2017 13:04:48 +0000 (15:04 +0200)]
es_out: ask for decoder drain on es_out_Del

because when the es deletion is triggered by
demuxer and not on EOF, it enters a dead loop
waiting for input_DecoderIsEmpty (p_owner->drained).
non set p_owner->draining can't trigger p_owner->drained.

2 years agodemux: ogg: handle precise seek
Francois Cartegnie [Fri, 28 Jul 2017 08:47:50 +0000 (10:47 +0200)]
demux: ogg: handle precise seek

2 years agomacosx: Add VLCRendererMenuController to POTFILES
Marvin Scholz [Mon, 31 Jul 2017 16:16:22 +0000 (18:16 +0200)]
macosx: Add VLCRendererMenuController to POTFILES

2 years agomacosx: Use VLCVolumeSlider
Marvin Scholz [Mon, 31 Jul 2017 16:09:56 +0000 (18:09 +0200)]
macosx: Use VLCVolumeSlider

2 years agomacosx: Add VLCVolumeSlider(Cell) classes
Marvin Scholz [Mon, 31 Jul 2017 16:08:23 +0000 (18:08 +0200)]
macosx: Add VLCVolumeSlider(Cell) classes

2 years agomacosx: Fix initializing the Cells in Slider subclasses
Marvin Scholz [Thu, 27 Jul 2017 11:39:39 +0000 (13:39 +0200)]
macosx: Fix initializing the Cells in Slider subclasses

2 years agomacosx: Add missing super awakeFromNib call
Marvin Scholz [Thu, 27 Jul 2017 11:10:18 +0000 (13:10 +0200)]
macosx: Add missing super awakeFromNib call

The docs for awakeFromNib say that super has to be called when
overriding awakeFromNib, this was not done in the VLCControlsBarCommon.
It should not make any difference though in this case.

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>