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
Rémi Denis-Courmont
3ccae49f75
Lua: check vlclua_get_playlist_internal() for NULL
12 years ago
Rémi Denis-Courmont
216b14b6b1
Lua: remove cargo cult check for the private data of the input thread
12 years ago
Jean-Baptiste Kempf
667cee1d06
LUA: synchronise meta with the core
14 years ago
Rémi Denis-Courmont
f78dac5846
Lua: kill some relocs, pack
14 years ago
Rémi Denis-Courmont
6e5c406511
Lua: add an assertion
(The underlying assumption was previously implicit.)
14 years ago
Kelly Anderson
c0f44d25b3
Consolidate lua includes in vlc.h
So lua 5.2 compatibility declarations can be made in one place.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
14 years ago
Jean-Baptiste Kempf
61147a769e
Move /modules/misc/lua/ to /modules/lua
Lua is an important part of VLC and abusing misc has gone a bit too far...
15 years ago
Rémi Duraffort
e2bf328095
lua_input: grab the input lock only one time when reading the metas (do not lock/unlock for each meta).
16 years ago
Rémi Duraffort
86ac0d4e75
lua: cosmetics (use the exact pointer typer not just void*).
16 years ago
Antoine Cellerier
30090106b2
Item specific information getters are now item object methods.
16 years ago
Antoine Cellerier
6164260812
Make sure that the playlist item has been preparsed first (and don't get stuck in an infinite loop). Note that libs/input.c is a mess and would need to be cleanup before we release 1.1.
16 years ago
Rémi Denis-Courmont
7e4d50ac42
Remove pl_Release, and rename pl_Hold back to pl_Get
pl_Hold() assumed the playlist was already created.
pl_Release() does not solve any problem. Playlist synchronization is
done with the playlist lock, while playlist deletion must anyway be done
after all interfaces, services and other threads are joined.
16 years ago
Rémi Denis-Courmont
d601e4ed29
Split file path functions out of vlc_charset.h into vlc_fs.h
16 years ago
Pierre d'Herbemont
181466ef44
lua/libs: Fix a left over lonely UnlockExtension().
Spotted by jpeg.
16 years ago
Pierre d'Herbemont
9ceb897c7b
lua/extension: Export extension_SetInput().
16 years ago
Pierre d'Herbemont
fd48c29148
lua: Remove dummy printf.
16 years ago