Commit Graph

6451 Commits

Author SHA1 Message Date
Marvin Scholz e70b3532b1 vlc_interface: Add DAV file extension
(cherry picked from commit d0cdf8e5e1)
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
2021-12-02 18:11:46 +00:00
Martin Storsjö 7b43e275fe include: Don't use the gnu_printf format attribute with clang
Clang doesn't support this attribute yet.

(cherry picked from commit 070fcc422e)

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2021-11-23 11:22:41 +01:00
Tristan Matthews ff6820d563 fourcc: add WebP image format
Refs #19446

(cherry picked from commit ca04206095)
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
2021-11-13 08:53:05 +00:00
KO Myung-Hun 5290585d13 vlc_fixups.h: define INET6_ADDRSTRLEN for OS/2
This fixes the following compilation errors of access/rist.[ch] on OS/2:

-----
  CC       access/librist_plugin_la-rist.lo
In file included from access/rist.c:41:
access/rist.h: In function 'populate_cname':
access/rist.h:161:22: error: 'INET6_ADDRSTRLEN' undeclared (first use in this function); did you mean 'INET_ADDRSTRLEN'?
  161 |             char str[INET6_ADDRSTRLEN];
      |                      ^~~~~~~~~~~~~~~~
      |                      INET_ADDRSTRLEN
access/rist.h:161:22: note: each undeclared identifier is reported only once for each function it appears in
access/rist.h:161:18: warning: unused variable 'str' [-Wunused-variable]
  161 |             char str[INET6_ADDRSTRLEN];
      |                  ^~~
access/rist.c: In function 'print_sockaddr_info_change':
access/rist.c:448:21: error: 'INET6_ADDRSTRLEN' undeclared (first use in this function); did you mean 'INET_ADDRSTRLEN'?
  448 |         char oldstr[INET6_ADDRSTRLEN];
      |                     ^~~~~~~~~~~~~~~~
      |                     INET_ADDRSTRLEN
access/rist.c:449:14: warning: unused variable 'newstr' [-Wunused-variable]
  449 |         char newstr[INET6_ADDRSTRLEN];
      |              ^~~~~~
access/rist.c:448:14: warning: unused variable 'oldstr' [-Wunused-variable]
  448 |         char oldstr[INET6_ADDRSTRLEN];
      |              ^~~~~~
access/rist.c: In function 'print_sockaddr_info':
access/rist.c:467:18: error: 'INET6_ADDRSTRLEN' undeclared (first use in this function); did you mean 'INET_ADDRSTRLEN'?
  467 |         char str[INET6_ADDRSTRLEN];
      |                  ^~~~~~~~~~~~~~~~
      |                  INET_ADDRSTRLEN
access/rist.c:467:14: warning: unused variable 'str' [-Wunused-variable]
  467 |         char str[INET6_ADDRSTRLEN];
      |              ^~~
-----
2021-08-13 04:54:56 +00:00
Francois Cartegnie 95cce99f56 vlc_codecs: add missing Opus and alac waveformats
>= Win10

refs #25794

(cherry picked from commit 4f7eeafa65)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2021-06-03 14:34:10 +02:00
Marvin Scholz 75b66193fb include: wrap more compat functions in extern C block
This ensures they have the correct linkage declared.

(cherry picked from commit 0e3775e3ff)
Signed-off-by: Felix Paul Kühne <felix@feepk.net>
2020-09-25 06:27:12 +02:00
Rémi Denis-Courmont 2ce3ca11f0 vlc_fixup: pollfd.(r)events is short int
As per POSIX (and Winsock).

(cherry picked from commit 6c172726cb)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2020-06-18 16:35:21 +02:00
Francois Cartegnie ec08cdcce1 vlc_es: add CLUT chroma info
(cherry picked from commit 3ad2450015)
2020-01-13 17:40:16 +01:00
Rémi Denis-Courmont 1c3a98552a Remove old mail address from sources
(cherry picked from commit cc129a71d7)
2019-09-04 22:12:12 +03:00
Rémi Denis-Courmont 6889f75f57 LibVLC: fix documentation
(cherry picked from commit 59313d6f2f)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2019-01-23 18:20:29 +01:00
Martin Storsjö 7a2c77128e configure: Check if C++ headers define locale_t
In environments that lack a full locale.h implementation, the C++
headers might implement some fallbacks with the same name
(on windows, libcxx does this).

In these cases, don't provide the normal fallbacks from vlc_fixups.h
when compiling in C++ mode, but include the C++ <locale> header instead.

If <locale> provides locale_t, include the header and define
HAVE_NEWLOCALE (which skips the vlc_fixups.h version of locale_t),
but keep the vlc_fixups.h fallback for uselocale. (One could
also add another configure test for whether <locale> provides
the uselocale function.)

(libcxx doesn't provide any fallback for the uselocale function
since it isn't easily implemented with the msvcrt _locale_t objects.
The libcxx fallback locale_t objects are applied via the setlocale
function, and passed to functions that take a _locale_t parameter.)

(cherry picked from commit 797efbd407)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2018-11-22 15:45:31 +01:00
Francois Cartegnie 951dbeb6f9 vout: ensure expired subpictures are really deleted
currently happens only when another subpicture is in the heap
and is valid

(cherry picked from commit a39eb8df51)
2018-11-09 13:44:13 +01:00
Victorien Le Couviour--Tuffet e3baeee84f compat: add lfind
Fixes android build with NDK 17 as lfind is not always available.
(cherry picked from commit cf9bd77c67)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-10-23 17:23:06 +02:00
Victorien Le Couviour--Tuffet f844c78b27 vlc_fixups: fix struct if_nameindex definition
Fixes android ndk17 build
(cherry picked from commit 0481899b5d)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-10-23 17:23:05 +02:00
Steve Lhomme 0c19a8ff27 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.

(cherry picked from commit bf2f64958b)
2018-10-17 12:01:55 +02:00
Steve Lhomme 02dbf20976 core: add RGBA 64 bits
16 bits per channel. Equivalent to DXGI_FORMAT_R16G16B16A16_UNORM.

(cherry picked from commit 9155641b72)
2018-10-17 12:01:51 +02:00
Steve Lhomme c6e65aeabb core: add packed YUVA
(cherry picked from commit 52bc3a57cc)
2018-10-17 12:01:50 +02:00
Kamil Rytarowski 535aed6be3 Make vlc_common.h compatible with NetBSD
Disable calls that are already handled by the NetBSD libc:
 - popcount(3)
 - popcountll(3)
 - bswap16(3)
 - bswap32(3)
 - bswap64(3)

These functions were renamed to vlc_* in HEAD (vlc-4.x) and since
they are set in stone in the stable releases use ifdef NetBSD here.

This corrects fatal build issues reported on NetBSD.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-03-13 09:03:23 +01:00
Rémi Denis-Courmont 4a90f3313f configure: test for newlocale() separate from uselocale()
As NetBSD only implements a barely sensical subset of the locale_t API.

(cherry picked from commit 192c77e42d)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>

Conflicts:
	configure.ac
2018-02-22 22:12:35 +02:00
Rémi Denis-Courmont 79d8efb342 extras: remove vlc_tdestroy()
This is superseded by the compat tdestroy() replacement, which is also
available outside of libvlccore.

(cherry picked from commit d8cc13dd92)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2018-02-20 21:46:00 +02:00
Rémi Denis-Courmont ee79356371 compat: add tdestroy()
This adds a thread-safe tdestroy() replacement for systems without it
but with tfind(). This should fix linking failures on BSD.

(cherry picked from commit 320938b4bf)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2018-02-20 21:45:18 +02:00
Thomas Guillem d029df0a8d input: fix restart of all ES when changing renderer
The sout was destroyed before decoders were deleted. This could lead to a
use-after-free of the sout from the DecoderThread.

To fix this issue, we stop all ES, save the stopped state of all ES, change the
renderer/sout configuration and restart all previously stopped ES.

Deprecate ES_OUT_RESTART_ALL_ES since it was only used for this case. And
replace it by ES_OUT_STOP_ALL_ES/ES_OUT_START_ALL_ES, but in private headers.

(cherry picked from commit 72f780a4b4)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-02-15 09:29:21 +01:00
Thomas Guillem 129c6b9394 fourcc: add VLC_CODEC_CVPX_P010
(cherry picked from commit 7a79d8be45)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-02-09 19:45:35 +01:00
Thomas Guillem 0d8b5004b5 tls: Add a way to ignore CA check.
Without breaking ABI.
2018-02-02 17:31:04 +01:00
Thomas Guillem 33f1935c1c aout: add Mono in "stereo-mode" option
Can be used to remix all input channels into one.

Close #8341 #18559

(cherry picked from commit 77e46ee5e9)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-01-22 10:06:14 +01:00
KO Myung-Hun b69112b476 configure: check and define if_nametoindex() on OS/2
This fixes the following compilation breakge on OS/2.

-----
  CC       network/udp.lo
network/udp.c: In function 'net_SetMcastOut':
network/udp.c:259:17: error: implicit declaration of function 'if_nametoindex'; did you mean 'if_nameindex'? [-Werror=implicit-function-declaration]
     int scope = if_nametoindex (iface);
                 ^~~~~~~~~~~~~~
                 if_nameindex
-----

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
(cherry picked from commit ebcbb4d84e)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2018-01-08 11:57:54 +01:00
Tristan Matthews 62f09d4eaf fourcc: use standard AV1 fourcc
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 6b9fdd145e)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-27 12:14:39 +01:00
Thomas Guillem 43a34ee948 lib: add libvlc_media_list_player_set_pause
(cherry picked from commit 0e89b88b7b)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2017-12-08 16:32:45 +01:00
Jean-Baptiste Kempf adec1d1874 Add sami extension for auto-loading of subs
(cherry picked from commit bbb1bcebec)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-07 23:24:51 +01:00
Jean-Baptiste Kempf 21829bfd5d Input-Slave: remove .txt and .utf8 as auto-loaded subtitles
(cherry picked from commit 57d6ef0301)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-07 23:23:14 +01:00
Thomas Guillem bc9e445831 url: add vlc_UrlParseFixup
Refs #18991

(cherry picked from commit ba9809c8b8)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2017-12-07 09:17:46 +01:00
Jean-Baptiste Kempf 46f5be093b Add missing subtitles extensions
Ref #19228 #19229 #19230 #19231

(cherry picked from commit 9108c985c6)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-05 11:47:55 +01:00
Thomas Guillem 68378c1fa6 input: attach slaves to master only
The previous logic was wrong. An input item is not necessarily a master if it's
not a slave.

Fixes #19208

(cherry picked from 55b62a9b34)
2017-12-04 18:18:04 +01:00
Thomas Guillem bc634c6cbf input: use bsearch in input_item_slave_GetType
(cherry picked from c7a229ab34)
2017-12-04 18:17:51 +01:00
Francois Cartegnie 796f8ecf24 vlc_bits: add shift guard on bs_read
and reject any reads > 32

(cherry picked from commit 86c35629d7)
2017-12-01 17:23:26 +01:00
Thomas Guillem f41ad8d916 lib: fix libvlc_media_player_set_renderer
Use the new input control: INPUT_SET_RENDERER to setup a renderer.

(cherry picked from commit 3eaa1607ec)
2017-12-01 15:11:29 +01:00
Rémi Denis-Courmont c4a667202a stream: clarify seeking documentation
(cherry picked from commit ad303c60a7)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-11-30 19:23:16 +01:00
Rémi Denis-Courmont bf51e08802 objres: restore malloc() wrapper
Regression from cf4676c1e8.
2017-11-28 18:54:06 +02:00
Rémi Denis-Courmont 12efcaae59 include: guard overflow builtins
Pointed-out-by: KO Myung-Hun <komh78@gmail.com>
2017-11-24 21:54:24 +02:00
Lyndon Brown 9e64d40264 includes/aout: fix incorrect mention of 24-bit support
Left over from 8d73a4d79b

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-11-24 08:50:54 +01:00
KO Myung-Hun 82da9eeee2 vlc_common: include limits.h for UINT_MAX, ULONG_MAX and ULLONG_MAX
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2017-11-23 13:35:28 +01:00
Francois Cartegnie be9ea17a8c text_renderer: freetype: add support for regions larger than text
fixes sized regions positioning
2017-11-23 00:50:08 +01:00
Rémi Denis-Courmont e46fd2bfa6 messages: resolve module name at link-time
Within all the introduced static libraries, the module cannot be known
at compilation time. This moves the module name from a compilation
constant to a link time constant string symbol. That way, the same
compiled object within a static library can use a different and correct
module name depending on which plugin it is linked into.

The symbol is hidden so it does not leak between shared objects. For
non-plugins shared libraries (vlccore, vlc, vlc_pulse and
vlc_xcb_events) the module name must be defined manually, unless the
library does not use msg_* macros at all (vlc_vdpau).
2017-11-18 21:41:26 +02:00
Rémi Denis-Courmont a1c3e136c4 Drop broken C99 support 2017-11-14 18:28:02 +02:00
Thomas Guillem 1d68b84bc8 wgl: add getExtensionsString callback 2017-11-13 13:12:01 +01:00
Rémi Denis-Courmont b372a4430d Use overflow built-ins also on clang
They were already available as of version 3.4.0.
2017-11-12 19:07:47 +02:00
Thomas Guillem 6a593dd451 core: use vlc_alloc helpers 2017-11-12 15:24:19 +02:00
Rémi Denis-Courmont aebbbf0288 vlc_alloc: use multiplication overflow helper
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2017-11-12 15:24:19 +02:00
Rémi Denis-Courmont 621449d63a Add helpers for unsigned integer overflow
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2017-11-12 15:24:16 +02:00
Rémi Denis-Courmont f5e485d1e3 core: add vlc_alloc: helper for table allocation
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2017-11-11 17:20:38 +01:00