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>
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
Services discovery media were displayed via the old playlist, which allowed to
display their tree.
The new playlist is not a tree, but a list, so it can't be used to display
services discovery trees. This lua API is only used from cli.lua, and we
consider it's not worth it to implement this feature for now, so just remove
it.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Many features were handled from LUA via VLC variables.
Expose functions for the new player and playlist instead.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
In addition to the existant playlist.current(), returning the current
item id, expose a function returning the item itself.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
The lua API exposed a function to search in (actually, filter) the
playlist. The filtering was directly applied on the core playlist,
so every playlist clients shared the same filter.
The new playlist does not filter. Instead, each client could create its
own filtered view of the core playlist.
We do not want to invest time to implement this for the lua API for now,
so remove the search feature of the "cli" interface.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
As a sort of VLC equivalent for strerror(), it is tempting to call it
vlc_strerror()... but that is already taken for converting actual
standard error codes to strings.
This is since some time a stream filter and not a demuxer anymore,
therefore this should be named stream_filter to not cause confusion
about that.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>