vlc.git
78 sec agodemux: adaptive: fix out of range exception master
Zhao Zhili [Thu, 12 Oct 2017 08:04:02 +0000 (16:04 +0800)]
demux: adaptive: fix out of range exception

Fixes #18611

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
6 hours agodirect3d9: prefer hardware vertex processing when possible
Steve Lhomme [Wed, 18 Oct 2017 10:33:41 +0000 (12:33 +0200)]
direct3d9: prefer hardware vertex processing when possible

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 hours agod3d11_fmt: fix crash when the feature level doesn't match
Steve Lhomme [Wed, 18 Oct 2017 11:56:33 +0000 (13:56 +0200)]
d3d11_fmt: fix crash when the feature level doesn't match

Also log the feature level as hexadecimal, it's easier to read.

Fixes #18941

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 hours agoUpdate MODULES_LIST for VAAPI
Jean-Baptiste Kempf [Wed, 18 Oct 2017 11:56:00 +0000 (13:56 +0200)]
Update MODULES_LIST for VAAPI

24 hours agocodec: cc: make captions default background half opaque
Francois Cartegnie [Tue, 17 Oct 2017 18:18:38 +0000 (20:18 +0200)]
codec: cc: make captions default background half opaque

24 hours agodemux: adaptive: fix cancellation during refresh playlist
Zhao Zhili [Wed, 13 Sep 2017 06:09:06 +0000 (14:09 +0800)]
demux: adaptive: fix cancellation during refresh playlist

This patch fixed a crash due to assert failure since mutex is not
unlocked before vlc_mutex_destroy().

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
24 hours agodemux: mp4: add support for CEA708
Francois Cartegnie [Mon, 25 Sep 2017 14:11:05 +0000 (16:11 +0200)]
demux: mp4: add support for CEA708

24 hours agocodec: add CEA708 decoder
Francois Cartegnie [Sun, 3 Sep 2017 16:56:13 +0000 (18:56 +0200)]
codec: add CEA708 decoder

25 hours agocodec/esout: add support for CEA708
Francois Cartegnie [Thu, 5 Oct 2017 14:51:32 +0000 (16:51 +0200)]
codec/esout: add support for CEA708

25 hours agocodec/esout: use bitmap for cc channels and refactor channel creation
Francois Cartegnie [Mon, 25 Sep 2017 14:50:16 +0000 (16:50 +0200)]
codec/esout: use bitmap for cc channels and refactor channel creation

25 hours agodemux: adaptive: remove redundant check of CRLF
Zhao Zhili [Thu, 12 Oct 2017 07:30:35 +0000 (15:30 +0800)]
demux: adaptive: remove redundant check of CRLF

CRLF is stripped by readLine(), and the following code doesn't deal with
CRLF, so the check is redundant and suspicious.

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
25 hours agoQt: remove toolbar icon size hack
Francois Cartegnie [Mon, 16 Oct 2017 10:50:09 +0000 (12:50 +0200)]
Qt: remove toolbar icon size hack

Text widget size is miscomputed due to a mix in non
native and scaled icon size.

This reverts commit 32930aa2e0c72371d4865a1ef18a0bab460be40a.

25 hours agotools: Patch libtool to pass-through sanitizer flags
Marvin Scholz [Mon, 16 Oct 2017 08:19:46 +0000 (10:19 +0200)]
tools: Patch libtool to pass-through sanitizer flags

This is a backport of
http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=a5c6466
as libtool has no release that includes this commit, yet.

It fixes using sanitizers on macOS, as without this patch, the
relevant flag is not passed to the compiler when linking, causing
undefined symbol errors.

25 hours agowin32:dirs: the cache folder should not be backed up in the cloud on winstore
Steve Lhomme [Tue, 17 Oct 2017 14:41:09 +0000 (16:41 +0200)]
win32:dirs: the cache folder should not be backed up in the cloud on winstore

See LocalCacheFolder
https://docs.microsoft.com/en-us/uwp/api/windows.storage.applicationdata#Windows_Storage_ApplicationData_LocalCacheFolder

25 hours agodirectx_va: add an extra buffer when decoding MPEG-2 (part 2)
Steve Lhomme [Tue, 17 Oct 2017 16:17:42 +0000 (18:17 +0200)]
directx_va: add an extra buffer when decoding MPEG-2 (part 2)

#18731 is not fixed in some cases because the deinterlacer may keep more than
one frame for later reference. The maximum extra frame currently supported is 2
so we need to add 2 frames to the decoder as they will be held for a while.

Theoretically the problem could happen with H264 but we usually have more frames
than we need.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
25 hours agowin32: filesystem: transform UNIX permissions into Windows flags for _wopen()
Steve Lhomme [Tue, 17 Oct 2017 14:23:14 +0000 (16:23 +0200)]
win32: filesystem: transform UNIX permissions into Windows flags for _wopen()

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
25 hours agovdummy: don't crash when used with hardware decoding
Steve Lhomme [Tue, 17 Oct 2017 13:52:20 +0000 (15:52 +0200)]
vdummy: don't crash when used with hardware decoding

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
25 hours agodxva2: log when a new device is detected
Steve Lhomme [Tue, 17 Oct 2017 12:19:19 +0000 (14:19 +0200)]
dxva2: log when a new device is detected

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
26 hours agodirect3d11: avoid variable shadowing
Steve Lhomme [Tue, 17 Oct 2017 12:19:39 +0000 (14:19 +0200)]
direct3d11: avoid variable shadowing

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
26 hours agod3d11_fmt: log when we decide not to use a D3D11 device
Steve Lhomme [Tue, 17 Oct 2017 12:20:10 +0000 (14:20 +0200)]
d3d11_fmt: log when we decide not to use a D3D11 device

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
26 hours agod3d11_fmt: only allow the WARP device type with a software decoder
Steve Lhomme [Tue, 17 Oct 2017 12:20:09 +0000 (14:20 +0200)]
d3d11_fmt: only allow the WARP device type with a software decoder

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
26 hours agod3d11: factorize the creation of the D3D11 device/context
Steve Lhomme [Tue, 17 Oct 2017 12:20:08 +0000 (14:20 +0200)]
d3d11: factorize the creation of the D3D11 device/context

This way you cannot use D3D11VA with a D3D9 vout by default.

Fix #18923

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 days agomacosx: Try to fix volume buttons with apple remote on 10.13
David Fuhrmann [Mon, 16 Oct 2017 17:00:49 +0000 (19:00 +0200)]
macosx: Try to fix volume buttons with apple remote on 10.13

macOS High Sierra remapped the volume up / down buttons on the
apple remote. This patch tries to fix that by adding the new
cookies.

refs #18894

2 days agodirect3d11: simplify the I420 handling
Steve Lhomme [Mon, 16 Oct 2017 11:25:33 +0000 (13:25 +0200)]
direct3d11: simplify the I420 handling

Rather than use buffers in the GPU and then copy in the staging texture, use
CPU buffers and copy in the staging texture from there.

Fixes #18766

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 days agoaccess: decklink: Support rgb input modes
Julian Scheel [Mon, 16 Oct 2017 10:45:54 +0000 (12:45 +0200)]
access: decklink: Support rgb input modes

Check if the card reports yuv or rgb input and set the codec format
accordingly.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 days agod3d11_surface: early check of the surface mapping possibilties
Steve Lhomme [Mon, 16 Oct 2017 13:16:31 +0000 (15:16 +0200)]
d3d11_surface: early check of the surface mapping possibilties

And log more errors.

Ref #18746

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 days agod3d11_surface: log when we use a different format
Steve Lhomme [Mon, 16 Oct 2017 13:16:30 +0000 (15:16 +0200)]
d3d11_surface: log when we use a different format

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2 days agovideotoolbox: Use noErr instead of 0
Marvin Scholz [Sun, 15 Oct 2017 22:15:47 +0000 (00:15 +0200)]
videotoolbox: Use noErr instead of 0

2 days agovideotoolbox: Handle kVTParameterErr as error
Marvin Scholz [Sun, 15 Oct 2017 22:14:51 +0000 (00:14 +0200)]
videotoolbox: Handle kVTParameterErr as error

Previously kVTParameterErr was not indicated as an error but as
VTSESSION_STATUS_OK in HandleVTStatus.

Ref #18925

2 days agoogg: don't call es_out_Send with NULL id
Thomas Guillem [Fri, 13 Oct 2017 10:00:38 +0000 (12:00 +0200)]
ogg: don't call es_out_Send with NULL id

2 days agomacosx: playlist accessory view: Remove explicit sizes, center
David Fuhrmann [Sat, 14 Oct 2017 12:52:59 +0000 (14:52 +0200)]
macosx: playlist accessory view: Remove explicit sizes, center

Explicit sizes shall not be used to allow grow for l10n. Also
center the elements.

3 days agolibass: correctly set fc options in ass_set_fonts call
Jean-Baptiste Kempf [Sat, 14 Oct 2017 21:50:06 +0000 (23:50 +0200)]
libass: correctly set fc options in ass_set_fonts call

3 days agoqt: about dialog should set text color as it sets background color
Pierre Lamot [Fri, 29 Sep 2017 08:25:12 +0000 (10:25 +0200)]
qt: about dialog should set text color as it sets background color

Otherwise text might be unreadable when system default font use a light color

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 days agoqt: specify the image extension in Qt ressource keys for proper rendering of SVG...
Pierre Lamot [Fri, 29 Sep 2017 08:25:11 +0000 (10:25 +0200)]
qt: specify the image extension in Qt ressource keys for proper rendering of SVG with Qt5.6

this is workaround for https://bugreports.qt.io/browse/QTBUG-55388

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 days agoqt: fix rendering of FramelessButton with HiDpi
Pierre Lamot [Fri, 29 Sep 2017 08:25:10 +0000 (10:25 +0200)]
qt: fix rendering of FramelessButton with HiDpi

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 days agoqt: svg support for pixmapanimator
Pierre Lamot [Fri, 29 Sep 2017 08:25:09 +0000 (10:25 +0200)]
qt: svg support for pixmapanimator

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 days agoqt: Volume slider rendering using vector graphics
Pierre Lamot [Fri, 29 Sep 2017 08:25:08 +0000 (10:25 +0200)]
qt: Volume slider rendering using vector graphics

Close #18649

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 days agoqt: scale icons to match user Dpi
Pierre Lamot [Fri, 29 Sep 2017 08:25:07 +0000 (10:25 +0200)]
qt: scale icons to match user Dpi

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 days agoqt: respect Dpi while rendering Svg to QPixmap
Pierre Lamot [Fri, 29 Sep 2017 08:25:06 +0000 (10:25 +0200)]
qt: respect Dpi while rendering Svg to QPixmap

Qt default behavior for rendering SVG is to ignore Dpi, which
  might leads to aliasing.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
3 days agoqt: provide graphics as SVG
Pierre Lamot [Thu, 28 Sep 2017 15:53:31 +0000 (17:53 +0200)]
qt: provide graphics as SVG

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 days agocontrib/QtSvg: fix cross compilation for win32
Pierre Lamot [Fri, 13 Oct 2017 14:56:15 +0000 (16:56 +0200)]
contrib/QtSvg: fix cross compilation for win32

* set QtSvg as a requirement on windows
* fix link compilation order for mingw

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 days agocontrib/Qt: install missing QtSvg dependecies
Pierre Lamot [Fri, 13 Oct 2017 14:56:14 +0000 (16:56 +0200)]
contrib/Qt: install missing QtSvg dependecies

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 days agodxva2_deinterlace: set the default ProcAmpValues when deinterlacing
Steve Lhomme [Fri, 13 Oct 2017 10:59:15 +0000 (12:59 +0200)]
dxva2_deinterlace: set the default ProcAmpValues when deinterlacing

Fixes #18599

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 days agodeinterlace: show the interlaced picture rather than nothing in case of error
Steve Lhomme [Fri, 13 Oct 2017 10:59:14 +0000 (12:59 +0200)]
deinterlace: show the interlaced picture rather than nothing in case of error

Only in release builds.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 days agovout iOS: fix context initialization if someone else already created a context
Felix Paul Kühne [Fri, 13 Oct 2017 14:36:58 +0000 (16:36 +0200)]
vout iOS: fix context initialization if someone else already created a context

5 days agoprojectm: include locale headers.
Konstantin Pavlov [Fri, 13 Oct 2017 16:28:38 +0000 (19:28 +0300)]
projectm: include locale headers.

5 days agodisplay: add more documentation for display_info.handle_mouse_hide
Steve Lhomme [Tue, 8 Aug 2017 13:22:31 +0000 (15:22 +0200)]
display: add more documentation for display_info.handle_mouse_hide

In all cases this flag means that the vout has a custom Window and handles the
mouse event itself, including showing/hiding the mouse.

For the auto-hiding to work such vout need to call either
vout_display_SendEventMouseMoved or vout_display_SendEventMouseState to notify
the core of mouse events. And they all do that.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agologger/file: Improve the verbosity option description
Marvin Scholz [Fri, 8 Sep 2017 19:49:33 +0000 (21:49 +0200)]
logger/file: Improve the verbosity option description

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agologger/file: Use defines for logfile text and longtext
Marvin Scholz [Fri, 8 Sep 2017 19:49:34 +0000 (21:49 +0200)]
logger/file: Use defines for logfile text and longtext

Make it consistent with the rest of the options text and longtexts

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agoqt/pref: fix toolbar icon or text beeing cropped on Hi-DPI displays
Pierre Lamot [Wed, 13 Sep 2017 09:45:26 +0000 (11:45 +0200)]
qt/pref: fix toolbar icon or text beeing cropped on Hi-DPI displays

Qt doesn't seems to handle properly when QIcon within QToolButton doesn't
 respect the original image ratio.

 This might results in icons beeing cropped on Linux or text beeing cropped
 on windows.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agovideo_output: fix disabled log compilation
Steve Lhomme [Thu, 14 Sep 2017 13:01:08 +0000 (15:01 +0200)]
video_output: fix disabled log compilation

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agoavcodec: remove useless initialization
Steve Lhomme [Thu, 14 Sep 2017 13:01:32 +0000 (15:01 +0200)]
avcodec: remove useless initialization

The value is never used before it's set to mdate()

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agoavcodec: "avcodec-skip-frame" is read once into i_skip_frame
Steve Lhomme [Thu, 14 Sep 2017 13:02:09 +0000 (15:02 +0200)]
avcodec: "avcodec-skip-frame" is read once into i_skip_frame

p_context->skip_frame is the value that may change during decoding

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agoSkins2: fix typo
Jean-Baptiste Kempf [Thu, 12 Oct 2017 22:50:14 +0000 (00:50 +0200)]
Skins2: fix typo

5 days agoQt: add support for QtSVG
Pierre Lamot [Thu, 12 Oct 2017 21:57:57 +0000 (23:57 +0200)]
Qt: add support for QtSVG

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agoContribs: add support for QtSVG for Qt
Pierre Lamot [Fri, 29 Sep 2017 08:25:03 +0000 (10:25 +0200)]
Contribs: add support for QtSVG for Qt

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agodirect3d11: bring back the Flush
Steve Lhomme [Tue, 10 Oct 2017 12:40:15 +0000 (14:40 +0200)]
direct3d11: bring back the Flush

It does help to get the processing going during Prepare() and before Display()

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agodirect3d11: Add one more buffer to the SwapChain
Steve Lhomme [Tue, 10 Oct 2017 12:40:16 +0000 (14:40 +0200)]
direct3d11: Add one more buffer to the SwapChain

It helps the GPU when one buffer is being processed for display and another
being displayed.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agodirect3d11: disable display luminance detection
Steve Lhomme [Thu, 12 Oct 2017 09:29:58 +0000 (11:29 +0200)]
direct3d11: disable display luminance detection

It doesn't work well with our current way of tone mapping and adjusting the
luminance between the source and output.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agodirectx_va: add an extra buffer when decoding MPEG-2
Steve Lhomme [Thu, 12 Oct 2017 10:00:59 +0000 (12:00 +0200)]
directx_va: add an extra buffer when decoding MPEG-2

DXVA2 with deinterlacing seems to be using one of these buffers when it shouldn't

Fixes #18731

5 days agodxgi_fmt: add some common formats that may be supported
Steve Lhomme [Thu, 12 Oct 2017 10:56:20 +0000 (12:56 +0200)]
dxgi_fmt: add some common formats that may be supported

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agommal: Link to core, components, util explicitly
Julian Scheel [Thu, 12 Oct 2017 12:47:06 +0000 (14:47 +0200)]
mmal: Link to core, components, util explicitly

In older versions of the rpi-userland libmmal was linked against
libmmal_core/_components/_util, so they were linked implicitly. Newer
versions don't do that, so we have to link them explicitly.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agommal: Include headers with -isystem
Julian Scheel [Thu, 12 Oct 2017 12:47:05 +0000 (14:47 +0200)]
mmal: Include headers with -isystem

The vcos/mmal headers are vendor provided system headers.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 days agod3d11va: use the external pool texture size even for the internal pool
Steve Lhomme [Thu, 12 Oct 2017 13:53:34 +0000 (15:53 +0200)]
d3d11va: use the external pool texture size even for the internal pool

When it's available, so that pre-computed dimensions still match as if the
pictures were coming from the external pool.

Fixes #18578

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
6 days agolibvlc: hide "extractor-flatten" option
Thomas Guillem [Thu, 12 Oct 2017 15:14:35 +0000 (17:14 +0200)]
libvlc: hide "extractor-flatten" option

6 days agoVT: only use hw decoding unless explicitely requested
Jean-Baptiste Kempf [Thu, 12 Oct 2017 15:16:16 +0000 (17:16 +0200)]
VT: only use hw decoding unless explicitely requested

Close #18911

6 days agohls: uint8_t is available in the global namespace
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:48:00 +0000 (16:48 +0200)]
hls: uint8_t is available in the global namespace

6 days agotaglib: Don't use qualified name lookup on unscoped enumeration
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:44:55 +0000 (16:44 +0200)]
taglib: Don't use qualified name lookup on unscoped enumeration

6 days agocore: video_output: Remove unused include
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:44:05 +0000 (16:44 +0200)]
core: video_output: Remove unused include

6 days agosatip: There is already an access_sys_t typedef
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:31:35 +0000 (16:31 +0200)]
satip: There is already an access_sys_t typedef

6 days agoadaptive: Don't use qualified name lookup on unscoped enumerations
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:10:32 +0000 (16:10 +0200)]
adaptive: Don't use qualified name lookup on unscoped enumerations

6 days agomkv: Don't use qualified name lookup on unscoped enum type
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:08:56 +0000 (16:08 +0200)]
mkv: Don't use qualified name lookup on unscoped enum type

6 days agomkv: Remove trailing whitespaces
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:06:31 +0000 (16:06 +0200)]
mkv: Remove trailing whitespaces

6 days agoadaptive: playlist: Remove explicit invocation of default contructor
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:02:38 +0000 (16:02 +0200)]
adaptive: playlist: Remove explicit invocation of default contructor

6 days agovlc_fixups: Provide __STDC_*_MACROS when building C++ for NACL
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 14:00:57 +0000 (16:00 +0200)]
vlc_fixups: Provide __STDC_*_MACROS when building C++ for NACL

6 days agolibvlc: Remove trailing whitespaces
Hugo Beauzée-Luyssen [Thu, 12 Oct 2017 13:57:09 +0000 (15:57 +0200)]
libvlc: Remove trailing whitespaces

6 days agoskins2: fix unarchive
Thomas Guillem [Thu, 12 Oct 2017 11:28:31 +0000 (13:28 +0200)]
skins2: fix unarchive

Tell the stream extractor to read all files and flatten the result.

6 days agoskins2: return in case of error
Thomas Guillem [Thu, 12 Oct 2017 11:27:27 +0000 (13:27 +0200)]
skins2: return in case of error

6 days agolibvlc: add "extractor-flatten" option
Thomas Guillem [Thu, 12 Oct 2017 11:26:45 +0000 (13:26 +0200)]
libvlc: add "extractor-flatten" option

Used to force extractors to flatten their file listing (done automatically by
vlc_readdir_helper helper).

6 days agoinput: readdir_helper: don't apply options on the current object
Thomas Guillem [Thu, 12 Oct 2017 08:41:44 +0000 (10:41 +0200)]
input: readdir_helper: don't apply options on the current object

6 days agovariables: var_InheritBool: return false if a variable doesn't exist
Thomas Guillem [Thu, 12 Oct 2017 11:24:44 +0000 (13:24 +0200)]
variables: var_InheritBool: return false if a variable doesn't exist

config_GetInt() returns -1 if the variable doesn't exist.

As var_GetBool() returns false if the variable doesn't exist, it's safe to
assume that var_InheritBool() should do the same.

6 days agovideotoolbox: abort if no vout handle CVPX chroma
Thomas Guillem [Thu, 12 Oct 2017 08:42:44 +0000 (10:42 +0200)]
videotoolbox: abort if no vout handle CVPX chroma

Fixes #18537

6 days agodemux: adaptive: fix inverted logic
Zhao Zhili [Thu, 12 Oct 2017 03:50:05 +0000 (11:50 +0800)]
demux: adaptive: fix inverted logic

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
7 days agodemux: adaptive: handle obsolete http header line folding
Francois Cartegnie [Wed, 11 Oct 2017 17:29:26 +0000 (19:29 +0200)]
demux: adaptive: handle obsolete http header line folding

7 days agoci_filters: simplify weak symbols handling
Thomas Guillem [Tue, 10 Oct 2017 16:28:58 +0000 (18:28 +0200)]
ci_filters: simplify weak symbols handling

7 days agotls: fix ignored interrupts
Thomas Guillem [Tue, 10 Oct 2017 10:58:52 +0000 (12:58 +0200)]
tls: fix ignored interrupts

If session->readv() or session->writev() are interrupted, the next call to
vlc_poll_i11e() will hang since the interrupt context is already finished (by
readv/writev).

8 days agoRevert "Force the X11 video outputs when libvlc_*_set_xwindow() is used"
Rémi Denis-Courmont [Tue, 10 Oct 2017 17:14:12 +0000 (20:14 +0300)]
Revert "Force the X11 video outputs when libvlc_*_set_xwindow() is used"

This reverts commit 4787f2365afd93cbd2fa8fc5790920b5ad10fc40.

8 days agolibvlc: don't force the xid "vout display"
Thomas Guillem [Tue, 10 Oct 2017 13:01:26 +0000 (15:01 +0200)]
libvlc: don't force the xid "vout display"

libvlc_media_player_set_xwindow() should only force the embed-xid "vout window"
plugin but not the xid "vout display" plugin.

This allows to use the GL "vout display" via EGL/GLX (with full hardware
acceleration) with an embedded X window.

Fixes #18907

8 days agodecoder: fix occasional deadlock on seek
Thomas Guillem [Mon, 9 Oct 2017 13:35:39 +0000 (15:35 +0200)]
decoder: fix occasional deadlock on seek

This commit fixes the following deadlock:

The input thread (from input_DecoderWait()) reads p_owner->b_idle, and wait on
the wait_acknowledge condition variable because p_owner->b_idle is false (and
because p_owner->b_has_data is false too). The decoder thread sets
p_owner->b_idle to true because the fifo is empty and wait on the fifo
condition variable. Both threads are waiting each others, hence the deadlock.

To fix this issue, signal the input thread from the decoder thread after
setting p_owner->b_idle to true.

Since predictable scheduling behavior is not required, p_owner->lock doesn't
have to be held while signaling p_owner->wait_acknowledge.

Fixes #16100

8 days agohelp: fix SIGSEGV
KO Myung-Hun [Mon, 9 Oct 2017 13:18:16 +0000 (22:18 +0900)]
help: fix SIGSEGV

--help and -H causes SIGSEGV.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
9 days agodirect3d11: log the current display format
Steve Lhomme [Thu, 14 Sep 2017 13:04:18 +0000 (15:04 +0200)]
direct3d11: log the current display format

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 days agocontrib: d3d11: add dxgi 1.6 to read IDXGIOutput6
Steve Lhomme [Thu, 14 Sep 2017 13:04:17 +0000 (15:04 +0200)]
contrib: d3d11: add dxgi 1.6 to read IDXGIOutput6

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 days agocontrib: dxgi: add missing IDXGIOutput interfaces
Steve Lhomme [Thu, 14 Sep 2017 13:04:16 +0000 (15:04 +0200)]
contrib: dxgi: add missing IDXGIOutput interfaces

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 days agocontrib: dxgi: add IDXGIFactory4
Steve Lhomme [Thu, 14 Sep 2017 13:03:48 +0000 (15:03 +0200)]
contrib: dxgi: add IDXGIFactory4

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 days agoextras/tools: Bump cmake version
Hugo Beauzée-Luyssen [Mon, 9 Oct 2017 14:48:00 +0000 (16:48 +0200)]
extras/tools: Bump cmake version

Cmake <= 3.7 are generating an invalid value for
CMAKE_CXX_IMPLICIT_LINK_LIBRARIES, causing the compile flags to contain
-lto_library -lc++ in some cases. This would lead to -lc++ not being
considered as the c++ library, causing build failures when building a
C module that is using a C++ library.
This is fixed starting from cmake 3.8
This fixes macOS builds

9 days agoFix gme build on windows
Hugo Beauzée-Luyssen [Mon, 9 Oct 2017 11:41:52 +0000 (13:41 +0200)]
Fix gme build on windows

9 days agobackground_worker: wait a little before destroying the current thread
Thomas Guillem [Fri, 6 Oct 2017 15:16:53 +0000 (17:16 +0200)]
background_worker: wait a little before destroying the current thread

This allows to use the same thread when input are parsed sequentially (and this
avoids creating 3 threads (parser/fetcher/downloader) for each inputs). The
performance gain is not visible on Linux but can be significant on platforms
with poor thread support.

9 days agobackground_thread: add a new cond
Thomas Guillem [Fri, 6 Oct 2017 16:10:39 +0000 (18:10 +0200)]
background_thread: add a new cond

For clients -> worker signals.

9 days agobackground_worker: add missing destroy
Thomas Guillem [Fri, 6 Oct 2017 15:59:15 +0000 (17:59 +0200)]
background_worker: add missing destroy

9 days agobackground_worker: simplify, merge locks
Thomas Guillem [Fri, 6 Oct 2017 15:57:00 +0000 (17:57 +0200)]
background_worker: simplify, merge locks

These 2 locks were only held for very fast operations. No need to complicate
with 2 locks.