Commit Graph

74778 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
320938b4bf compat: add tdestroy()
This adds a thread-safe tdestroy() replacement for systems without it
but with tfind(). This should fix linking failures on BSD.
2018-02-20 21:42:43 +02:00
Rémi Denis-Courmont
a992da82cd darwin: fix proxy URL format (fixes #19803) 2018-02-20 20:26:06 +02:00
Rémi Denis-Courmont
b46ddaecda Revert "service_discovery: lock playlist_ServicesDiscoveryKillAll()"
This reverts commit d9661b8bdc.
There is no point in locking there, since interfaces are gone and the
playlist is disabled already.
2018-02-20 20:25:42 +02:00
Francois Cartegnie
e53149b6b1 demux: hls: end attribute when closing quotes 2018-02-20 16:10:49 +01:00
Francois Cartegnie
698a857c77 demux: hls: strip invalid padding chars from attributes 2018-02-20 16:10:48 +01:00
Steve Lhomme
e10dffc42d hw:d3d11:d3d11_surface: allocate a single slice texture 2018-02-20 15:33:48 +01:00
Steve Lhomme
c106b432ad d3d11: remove double variable init 2018-02-20 15:33:48 +01:00
Steve Lhomme
1c52f12f95 fourcc: list the YUV 4:4:4 with alpha channel as YUV formats 2018-02-20 15:33:48 +01:00
Steve Lhomme
768e25d29d dxgi_fmt: map DXGI_FORMAT_AYUV to VLC_CODEC_VUYA 2018-02-20 15:33:47 +01:00
Steve Lhomme
b1126dfe65 avcodec: map VLC_CODEC_VUYA to AV_CODEC_ID_AYUV
They seem to be the same MS format
2018-02-20 15:33:37 +01:00
Steve Lhomme
52bc3a57cc core: add packed YUVA 2018-02-20 15:33:36 +01:00
Steve Lhomme
7710fedb7d dxgi_fmt: map DXGI_FORMAT_R10G10B10A2_UNORM to VLC_CODEC_RGBA10 2018-02-20 15:33:36 +01:00
Steve Lhomme
754904d221 dxgi_fmt: map DXGI_FORMAT_R10G10B10A2_UNORM to RGBA10 2018-02-20 15:33:17 +01:00
Steve Lhomme
bf2f64958b core: add RGBA 32 bits with 10 bits per RGB channel
Equivalent to DXGI_FORMAT_R10G10B10A2_UNORM. One of the main format on Windows
to display 10 bits.
2018-02-20 15:33:16 +01:00
Steve Lhomme
82ae0d1c2d dxgi_fmt: map DXGI_FORMAT_R16G16B16A16_UNORM to RGBA64 2018-02-20 15:33:16 +01:00
Steve Lhomme
9155641b72 core: add RGBA 64 bits
16 bits per channel. Equivalent to DXGI_FORMAT_R16G16B16A16_UNORM.
2018-02-20 15:33:16 +01:00
Steve Lhomme
a617445d80 Revert "picture: add a commonly used plane_SwapUV function"
This reverts commit c8f7552339.

Not needed anymore. Use picture_SwapUV().
2018-02-20 14:27:50 +01:00
Steve Lhomme
7c1608be1c modules: use picture_SwapUV() instead of plane_SwapUV()
It has a check for the plane count.
2018-02-20 14:27:40 +01:00
Steve Lhomme
3503799295 includes: inline picture_SwapUV() in vlc_pictures.h 2018-02-20 14:27:22 +01:00
Steve Lhomme
289f3d66b3 screen:win32: don't allocate more than needed
block_t is already part of the block_sys_t structure
2018-02-20 13:41:46 +01:00
Steve Lhomme
fbe8e49ef7 modules: remove implied filter_sys_t* casts 2018-02-20 13:41:38 +01:00
Steve Lhomme
7b2eec558e d3d11va: fix misleading log 2018-02-20 09:08:36 +01:00
Steve Lhomme
c5bc37e56f direct3d11: pretend we have the right amount of textures for direct rendering
But don't allocate too much if we're going to use the decoder pool.
2018-02-20 09:08:18 +01:00
Steve Lhomme
2d2494ffea d3d11va: fix buffer overrun
CID #1465381
2018-02-20 09:02:58 +01:00
Steve Lhomme
0b320e5ec1 d3d11va: it's unlikely that we'll use the vout pool but don't have enough slices 2018-02-20 08:51:31 +01:00
Steve Lhomme
571ea8ffbb d3d11: make the code to decide whether to use the external pool more generic
This code will go away once we use the push model.
2018-02-20 08:51:31 +01:00
David Fuhrmann
b62b868c75 macosx: Correctly save and restore collapsed state of split view
This state is saved already with the automatic macOS mechanisms
using the assigned autosave name. Therefore, remove the additional
setting which was interfering with the already correct state.

fixes #19649
2018-02-19 21:54:39 +01:00
Thomas Guillem
5f436a17e0 codec: vt_utils: don't use 10.13 value directly 2018-02-19 21:13:37 +01:00
Janne Grunau
ec4d9649d1 arm: make the assembler functions compatible with non ELF/gas platforms
Allow assembling arm neon functions for IOS and arm windows.

Signed-off-by: Martin Storsjö <martin@martin.st>
2018-02-19 21:59:35 +02:00
Martin Storsjö
c51613372b d3d11_adjust: Pass a non-const pointer to atomic_load
This fixes compilation with clang, which previously errored
out with this message:

error: address argument to atomic operation must be a pointer to non-const _Atomic
      type ('const atomic_int *' (aka 'const _Atomic(int) *') invalid)
    int level = atomic_load(&p_level->level);
                ^           ~~~~~~~~~~~~~~~
2018-02-19 21:39:22 +02:00
Francois Cartegnie
7ada256b0e demux: playlist: fix base url in metas 2018-02-19 18:24:57 +01:00
Francois Cartegnie
c7b8f7b431 playlist: xspf: revert to unrolling on multiple attributes (fix #19755)
regression in e21706e9e3
2018-02-19 18:24:57 +01:00
Steve Lhomme
566fddfa31 direct3d11: limit the amount of pool slices on Winstore apps
They're limited in memory and don't like too many slices. In most cases
the d3d11va pool will be used instead.
2018-02-19 18:10:15 +01:00
Steve Lhomme
a2624b4fd8 avcodec: limit the amount of threads to 6 for UWP apps
This will also limit the amount of memory used
2018-02-19 18:10:14 +01:00
Steve Lhomme
1a5ea023b3 directx_va: adjust the Xbox constraints
It can't handle 4K aligned to 128 but is fine when aligned to 16.
2018-02-19 18:10:14 +01:00
Steve Lhomme
a15bca0d4b d3d11va: reuse the global UWP context if possible 2018-02-19 18:10:14 +01:00
Steve Lhomme
3c68fead20 direct3d11: only lock the picture if it's plane based 2018-02-19 18:10:13 +01:00
Steve Lhomme
083278b3f9 d3d11va: try to decode to P010 with 10 bits decoders 2018-02-19 18:10:13 +01:00
Steve Lhomme
693a495f65 d3d11va: fix leak on error 2018-02-19 18:10:12 +01:00
Steve Lhomme
d5255d78d2 video_output: adapt the late threshold to the frame rate if there's one 2018-02-19 18:10:12 +01:00
Francois Cartegnie
5e78630c67 demux: subtitle: fix seek with single sub 2018-02-19 17:15:19 +01:00
Francois Cartegnie
3622e97390 codec: webvtt: encode ruby 2018-02-19 15:29:54 +01:00
Francois Cartegnie
4258b772da text_renderer: freetype: fix skipped ruby ending lines 2018-02-19 15:18:04 +01:00
Francois Cartegnie
074f326104 packetizer: mpeg4video: fix oob read 2018-02-19 14:15:30 +01:00
David Fuhrmann
5d0d2b0d53 macosx: Spin event loop to process pending selectors on main thread
This is needed to cleanup everything correctly. In one particular
occurence, the InputManager still had pending selectors in the queue
which prevented the object from being released.
This resulted in playback position never saved, which is fixed now
with this change.

Also this fixes occasional crashes in debug mode as the ref count of
the current input thread is now correct on exit.

fixes #19704
2018-02-18 19:44:18 +01:00
David Fuhrmann
eab53a4266 macosx: Move resume logic from playlist into input manager
The playlist object might be dead already once this code is needed.
Its standalone code only needed in InputManager, and it better
belongs there.

refs #19704
2018-02-18 19:44:18 +01:00
Marvin Scholz
6e4b8d004a macosx: Reorganize assets and remove unnecessary ones 2018-02-18 19:06:40 +01:00
Marvin Scholz
0ad44ebe42 macosx: Simplify imageFromRes 2018-02-18 18:27:20 +01:00
Marvin Scholz
ad6f88a250 macosx: Remove VLCHUDScroller class
This was used on macOS versions lower than 10.10 to draw custom
HUD-style controls and is not necessary anymore.
2018-02-18 17:44:47 +01:00
Marvin Scholz
fdf41088e0 macosx: Remove usage of VLCHUDScroller 2018-02-18 17:43:40 +01:00