Hank Anderson
c10af532f2
meta: vlc_meta_AddExtra() rename to vlc_meta_SetExtra()
3 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
Thomas Guillem
40a3b66f0a
lua: don't show hidden info categories
4 years ago
Pierre Lamot
16f171590e
lua: add missing player lock
6 years ago
Steve Lhomme
eda8861490
lua: add the late frames statistics
In addition to displayed and dropped frames.
6 years ago
Hugo Beauzée-Luyssen
9618772c56
lua: Move vlclua_get_player_internal to misc
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
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
8f20277b06
lua: remove unused playlist_legacy includes
7 years ago
Romain Vimont
9e3b88e096
lua: add functions to the player/playlist API
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>
7 years ago
Romain Vimont
c9e2717771
lua: use new playlist and player
Change the lua API implementation (the native part) to use the new
player and the new playlist.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Rémi Denis-Courmont
d55765b605
input: introduce input_Hold() and input_Release()
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
7 years ago
Rémi Denis-Courmont
d1ffbbf01e
lua/input: playlist cannot be nul
7 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Thomas Guillem
034a3f75a2
core: move playlist to playlist_legacy
To make room for the new playlist.
This playlist_legacy will be removed once all modules are using the new
playlist.
8 years ago
Steve Lhomme
69b25f403d
lua: use helper function to convert from vlc_tick_t to floating point seconds
8 years ago
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
8 years ago
Rémi Denis-Courmont
517a7e7b3f
input item: use vlc_list for per-category infos
8 years ago
Steve Lhomme
04db84cd9c
modules: replace use of 1000000 on time values by CLOCK_FREQ
Modified-by: Thomas Guillem <thomas@gllm.fr>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 years ago
Rémi Denis-Courmont
c624707de2
input item: remove constant stat fields
8 years ago
Rémi Denis-Courmont
8ac0bd4462
input item: remove unused stats members
8 years ago
Rémi Denis-Courmont
cc70e92424
stats: remove the lock
The containing input item lock already must be held while reading or
writing statistics, so this is redundant.
8 years ago
Rémi Denis-Courmont
7bac48bd52
lua: fix race on input_item_t.p_stats
p_stats is written with the input item lock (by the input thread).
Thus the input item lock is necessary to read and dereference p_stats.
8 years ago
Hugo Beauzée-Luyssen
31e424004d
input: Reintroduce subtitle extension check
Fix #18882
9 years ago
Hugo Beauzée-Luyssen
855374961a
lua: libs: input: Fix potential input thread leak
9 years ago
Hugo Beauzée-Luyssen
78afc66c23
lua: libs: input: Allow a subtitle to be added by its mrl
9 years ago
Hugo Beauzée-Luyssen
d46d275d25
lua: libs: input: Allow subtitles to be autoselected
9 years ago
Hugo Beauzée-Luyssen
17b37dd4dd
lua: Expose vlclua_input_item_get to the rest of the lua lib
9 years ago
Hugo Beauzée-Luyssen
1083d47af5
Use input_AddSlave instead of input_AddSubtitleOSD
9 years ago
Rémi Denis-Courmont
f4bb458815
Replace vlc_gc_decref() with input_item_Release()
9 years ago
Rémi Denis-Courmont
763cea5e20
Replace vlc_gc_incref() with input_item_Hold()
9 years ago
Filip Roséen
75215c7328
lua/libs/input: fix 17611: properly populate filename attribute
The previous implementations usage of input_item_GetName resulted in
unexpected data in the filename attribute (given that
input_item_GetName will first query vlc_meta_Title, and if present
return that).
These changes extracts the filename for a given item, including
support for trailing slashes (so that we do not get an empty filename
for a path such as file:///media/).
fixes #17611
Signed-off-by: Pierre Ynard <linkfanel@yahoo.fr>
10 years ago
Rémi Denis-Courmont
d88dd80b1b
lua: memory leaks
10 years ago
Felix Paul Kühne
03159d8c43
Revert "lua: XML encode metadata before pushing it on the web interface ( closes #15866 )"
This reverts commit 2e25c296dac7649effea50d294ac625f21da4530.
11 years ago
Felix Paul Kühne
1f5fb6194d
lua: XML encode metadata before pushing it on the web interface ( closes #15866 )
11 years ago
Jean-Baptiste Kempf
a6ca4e4cc8
Meta: add DiscTotal
11 years ago
Thomas Guillem
e7c108d7d3
main: update VLC_META_TYPE_COUNT
It was not updated after adding vlc_meta_ESNowPlaying.
Signed-off-by: Ludovic Fauvet <etix@videolan.org>
11 years ago
Uwe L. Korn
dae78cbb0e
input: Add support for DiscNumber meta
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Uwe L. Korn
ff555c6df9
input: Add support for AlbumArtist meta
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Jean-Baptiste Kempf
a41e3d70a0
Lua: fix build
12 years ago
Hugo Beauzée-Luyssen
90ff4acd64
lua: Fix forward declarations
12 years ago
Rémi Denis-Courmont
a5a33334e8
Lua: input_AddSubtitle expects a file path, not an URL ( fixes #11449 )
12 years ago
Jean-Paul Saman
b1776794fb
Revert "lua: report status of main ES-es on current input."
This reverts commit b978c15a59 .
12 years ago
Jean-Paul Saman
b978c15a59
lua: report status of main ES-es on current input.
14 years ago
Jean-Baptiste Kempf
ccca9becbf
Add the new metadata to lua code
12 years ago
Rémi Denis-Courmont
781ff75140
Lua: set playlist object explicitly in state
12 years ago