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
Pierre d'Herbemont
bc331b80f3
lua: Properly set the meta according to metas().
16 years ago
Pierre d'Herbemont
d9322881a7
lua: Expose extra meta through vlc.item.metas.
17 years ago
Pierre d'Herbemont
a36325f84f
lua: assert that we have an item.
17 years ago
Pierre d'Herbemont
1af19c857a
lua: Add the possibility to expose vlc.item.
Also support multiple meta data, and the "filename" meta data as well.
17 years ago
Rémi Duraffort
d452d256a2
lua: also add some statistics.
17 years ago
Rémi Duraffort
a5120fbebe
lua_libs: lock the mutex when reading the stats of an item.
17 years ago
Jean-Philippe André
e74515cf1b
Lua: new input and input_item facilities
New function vlc.input.item(): returns a pointer to the current input_item
The object returned by vlc.input.item has the following members:
- item:metas(): similar to vlc.input.metas
- item:set_meta(name, value): change a meta. Eg: set_meta("artist", "ZZ")
17 years ago
Jean-Philippe André
b2b191a734
Lua: new function vlc.input.metas
Returns a table with (max.) 17 meta data about the current input
17 years ago
Jean-Philippe André
16d88109d4
Lua: new function vlc.input.add_subtitle
Load a subtitles stream given its URI
17 years ago
Jean-Philippe André
8433e306f6
Lua: release input thread
17 years ago
Rémi Denis-Courmont
ae86adf422
Remove dummy input locking
Contrary to commit 719f12a6 log, input_GetItem() does not check for a
lock on the input. There may be need for locking here(?), but taking the
object lock would definitely not help, as this was the only place is the
entire tree using the generic object lock on an input object.
17 years ago
Pierre d'Herbemont
d228fdd28e
playlist: Move more members as private.
18 years ago
Antoine Cellerier
7060dbb9a2
s/vlc_object_yield/vlc_object_release/
As discussed on IRC. Yield was quite confusing.
18 years ago
Rémi Denis-Courmont
c8897e2c1c
Use PL_LOCK/PL_UNLOCK
18 years ago
Ilkka Ollakka
719f12a679
add vlc_object_lock/unlock to playlist-handling, fixes locking_assert for me
in lua-http interface, but if someone could double check it would be nice.
18 years ago
Rémi Duraffort
1c94ebe4d6
Use pl_Release an factorise two lines.
18 years ago
Antoine Cellerier
95addd5738
Implement Lua objects in the C code directly. Fix most type checks. Move every thing arround.
18 years ago