Steve Lhomme
1243a6c0d6
include: avoid including vlc_subpicture.h when not needed
We should not rebuild a lot of Qt files when changing the subpictures.
It's still included in vlc_codec.h so all encoders/decoders are still
impacted by such changes.
3 years ago
Steve Lhomme
f349e8b8df
httpd: use size_t for buffer size results
The value can never be negative and it simplifies code in places.
We also need to change the i_body which is used as a pointer in some cases.
The value can never be negative and it simplifies code in places.
We also need to change the i_body which is used as a pointer in some cases.
3 years ago
Steve Lhomme
a76147639a
modules: assume sizeof(uint8_t) is 1
From C11 7.20.1.1:
The typedef name uintN_t designates an unsigned integer type with width N and no padding bits.
3 years ago
Hank Anderson
c10af532f2
meta: vlc_meta_AddExtra() rename to vlc_meta_SetExtra()
3 years ago
Steve Lhomme
0368d311b5
lua: use WINAPI_FAMILY to enable the console API
It's using freopen( "CONOUT$") which is not going to work.
3 years ago
Steve Lhomme
cd08025f3b
modules: include vlc_configuration.h when using config_GetType()
3 years ago
Steve Lhomme
098daebfa0
modules: include vlc_configuration.h when using config_GetUserDir()
3 years ago
Steve Lhomme
5c67db978f
variables: return size_t with var_CountChoices()
It can't report an error and that's how the value is stored.
3 years ago
Hugo Beauzée-Luyssen
9af90cca2b
lua: add medialibrary API
6 years ago
Steve Lhomme
4862e4195c
vlc_fs: always use a custom type for our opendir API's
This will avoid some dirty casts between DIR and vlc_DIR on Windows.
The Windows handling could be done entirely without dirent.h which is not a
standard Windows API.
4 years ago
Steve Lhomme
fbb6f14099
modules: use vlc_closedir instead of direct closedir
So it matches vlc_opendir() calls.
4 years ago
Hugo Beauzée-Luyssen
f5a4a03e6f
lua: httpd: Return a valid body in case of errors
The body is used unconditionally from the callsite
4 years ago
Rémi Denis-Courmont
44b88a9d68
lua/input: disable tracks whence toggling ID -1
This matches the pre-4.0 behaviour expected in existing Lua scripts.
Fixes #26937 .
4 years ago
Alexandre Janniaux
fe7a43f967
lua: input: remove unused variable
Unused since commit 80dd05f921 .
4 years ago
Thomas Guillem
80dd05f921
input_item: category: use a vlc_list
Instead of the legacy array.
4 years ago
Lyndon Brown
4d89ef900d
fix mis-spelling of overridden
a followup to !1044 .
4 years ago
Alexandre Janniaux
6b7a57f984
modules: fix typos
Typos found and reworked from codespell.
4 years ago
Lyndon Brown
a6afae0848
lua: clarify error text
4 years ago
Lyndon Brown
03964431da
lua: fix wrong option location in error text
the location of the option was missing the step of the top-level
"Interface" tree node below which the "Main interfaces" node is found.
4 years ago
Lyndon Brown
538bc9bd66
lua: fix bad html
a sentence should not be broken up across multiple paragraphs. if forcing
part of the paragraph onto a new line is wanted, there's the line break
tag, and if that does not give the desired line spacing, this can be
tweaked with css.
4 years ago
Thomas Guillem
40a3b66f0a
lua: don't show hidden info categories
4 years ago
Rémi Denis-Courmont
0f2a579ab2
lua: simplify strerror() usage
5 years ago
Rémi Denis-Courmont
ccef59c94d
lua: match strerror() case
5 years ago
Marvin Scholz
347f73b9a7
Only define VLC_WINSTORE_APP if true
This makes it consistent with all the other uses of such defines in
the source code, which are tested for their existence rather than the
actual value.
5 years ago
Rémi Denis-Courmont
f32f289264
Rationalise not found error codes
We don't need 4 different codes for essentially the same thing, which
is that a certain thing could not be found.
5 years ago
Rémi Denis-Courmont
dd20ace531
Rename VLC_EBADVAR to VLC_EINVAL
5 years ago
Pierre Lamot
16f171590e
lua: add missing player lock
6 years ago
Pierre Ynard
b33c2c3afe
lua httpd: use TLS if --http-cert is set
This follows the same approach as oldhttp, and allows configuring the
web interface to use HTTPS.
Refs #19807
6 years ago
Steve Lhomme
eda8861490
lua: add the late frames statistics
In addition to displayed and dropped frames.
6 years ago
Rémi Denis-Courmont
0b6f8e5c7c
Check for <poll.h> explicitly
6 years ago
Hugo Beauzée-Luyssen
43ea5b40fc
lua: Add basic support for renderer discovery
6 years ago
Hugo Beauzée-Luyssen
9618772c56
lua: Move vlclua_get_player_internal to misc
6 years ago
Marvin Scholz
6b07642188
lua: sd: use new md5 API
6 years ago
Rémi Denis-Courmont
8a53887fbf
lua: fix leaks
All string-class variables must be freed, not just the string-typed
ones.
6 years ago
Rémi Denis-Courmont
2c88e2273b
lua: use vlc_send()
6 years ago
Steve Lhomme
48442d3536
lua: use the proper prototype for Lua C callbacks
The code fails to build with -Werror=incompatible-pointer-types otherwise
6 years ago
Steve Lhomme
87882838d8
lua: don't force pushing an object to be released
We could release all kinds of things we push (despite the function name).
6 years ago
Steve Lhomme
ad7df57810
lua: fix the pushed release callback prototype
Both callbacks don't return a value so don't force a callback that need one.
6 years ago
Steve Lhomme
49baa7dba6
lua: fix vlclua_release_vlc_object prototype
The pushed C function must return how many items it pushed in the Lua stack.
6 years ago
Quentin Chateau
e965992290
lua: fixed object release function
As a single metatable for vlc_object exists
all lua objects in objects.c would be freed
with the same release function
That caused segmentation faults
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
6 years ago
Rémi Denis-Courmont
a18c4d6570
thread: remove vlc_cond_destroy()
6 years ago
Rémi Denis-Courmont
a3226cf890
thread: remove vlc_mutex_destroy()
6 years ago
Alexandre Janniaux
361428f858
lua: input: fix uninitialized autoselect variable
Issued from c9e2717771 refactor.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Thomas Guillem
dd5ba72db7
player: add a policy to vlc_player_SelectEsId
This will replace the future vlc_player_AddEsId() function (simultaneous).
7 years ago
Thomas Guillem
cb1b9717d0
player: rename vlc_player_*Track to EsId
In order to clearly identify functions using a vlc_es_id_t*.
And add Track helpers.
7 years ago
Thomas Guillem
9d592a58e4
vout: spu: rework channel registration
Every registered channels need to be unregistered. The first 3 OSD channels
don't need to be unregistered since they are automatically registered.
sput_t now use a vector of struct spu_channel to keep its channels. This struct
will contain parameters specific to a channel like the clock/delay/rate.
The channel_id is now a ssize_t, -1 being invalid, 0, 1, 2 being the OSD
channels, and [3; SSIZE_MAX] being registered spu channels.
ES_OUT_VOUT_FLUSH_OVERLAY is renamed to ES_OUT_VOUT_DEL_OVERLAY since this
control is only used to delete an overlay.
Refs #22273
7 years ago
Thomas Guillem
ee4afd6821
remove unused #include <vlc_input.h>
7 years ago
Rémi Denis-Courmont
161832532a
lua: use vlc_strerror_c()
7 years ago
Romain Vimont
3159390d8a
lua: player: remove incorrect const
A title list can be held, so vlc_player_GetTitleList() returns a pointer
to a non-const title list.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Thomas Guillem
bef305db36
lua: use aout_Release()
That is what happen when you grep only for vlc_object_hold().
7 years ago