Jean-Baptiste Kempf
1f066ddee6
LUA is still GPLv2+
11 years ago
Jean-Baptiste Kempf
e105c631fe
lua: fix opening of scripts on Windows on non-ASCII path
Close #13752
11 years ago
Jean-Baptiste Kempf
d3985a2be5
Lua: use the VLC wrapper to open files
Ref #13752
11 years ago
Jean-Baptiste Kempf
a759cda542
Revert "lua extensions: open a URI, not a filepath"
This reverts commit 916c380e2b .
Ref #13752
11 years ago
Jean-Baptiste Kempf
bf7ad95b78
lua: always use vlclua_dofile
Ref #13752
11 years ago
Rémi Denis-Courmont
d92c4331a6
msg: simplify msg_GenericVa() macro
11 years ago
Vinson Lee
41caaa08cd
lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility.
In Lua 5.3.0, luaL_checkint was deprecated.
This patch fixes this build error with Lua 5.3.0.
lua/demux.c: In function ‘vlclua_demux_peek’:
lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
int n = luaL_checkint( L, 1 );
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
Jean-Baptiste Kempf
916c380e2b
lua extensions: open a URI, not a filepath
Close #13752
11 years ago
Jean-Baptiste Kempf
01bd073cd4
Lua: code cosmetic
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
Rémi Denis-Courmont
522604203a
playlist: rename playlist_Pause() to playlist_TogglePause()
The behaviour is unchanged:
- if stopped: starts playing,
- if playing: pauses playing,
- if paused: resumes playing.
12 years ago
Rémi Denis-Courmont
6efc10f0a5
lua/playlist: do not handle impossible error
12 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
32486e651c
variables: remove VLC_VAR_GETLIST (same as VLC_VAR_GETCHOICES)
12 years ago
Rémi Denis-Courmont
b893d33da2
variables: store a single type per list
All entries in a single list always have the same type anyway.
12 years ago
KO Myung-Hun
ff7f5020e7
lua: add libdir to lua dir list on OS/2
Installed version cannot find lua scripts.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Hannes Domani
a916d7be15
lua: reactivate vlclua_net_poll() on windows
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Hannes Domani
7d20cc0edf
lua: never change index of lua file descriptors
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
12 years ago
Rémi Denis-Courmont
9e7dd0b49f
playlist: move i_nb_played to playlist item, not the input item
This is accessed with the playlock lock anyway.
12 years ago
Francois Cartegnie
72afb88361
lua: include cleanup
12 years ago
Francois Cartegnie
ba13ac0ca1
rename art_finder as meta_fetcher
12 years ago
Francois Cartegnie
058b871eb0
finder/fetcher: always use scripts doing local access
12 years ago
Rémi Denis-Courmont
a5a33334e8
Lua: input_AddSubtitle expects a file path, not an URL ( fixes #11449 )
12 years ago
Rémi Denis-Courmont
1908e010c2
lua: do not pass -1 to read/write/recv/send
12 years ago
Rémi Denis-Courmont
5ae7b5e3c3
Lua: fix compilation with Lua 5.1.4
12 years ago
Rémi Denis-Courmont
13cb1f0e20
lua: dead code
12 years ago
Rémi Denis-Courmont
fe30f8c0c3
Lua: add sockets to extensions ( fixes #9495 )
12 years ago
Rémi Denis-Courmont
bfe17fd33e
lua: vector out files descriptable table code
12 years ago
Rémi Denis-Courmont
6da72c20cf
lua: move some code, no functional changes
12 years ago
Rémi Denis-Courmont
5384c38e49
Lua: split sd function for SD and for interfaces plugins ( fixes #10308 )
Functions casting this to a services_discovery_t pointer are only
usable by SD plugins. Functions looking up the playlist are only usable
by interfaces plugins and extensions.
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
ee0b9164f9
vlc_readdir: remove string duplication, simplify
12 years ago
Julien 'Lta' BALLET
df28caa306
Extends lua's SD API to add a remove_node method, similar for remove_item
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Julien 'Lta' BALLET
294c97cd9d
Fix a segfault in LUA Service Discovery, when stack wasn't a clean state after the first iteration of the FillDescriptor loop
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Rémi Denis-Courmont
b381bf8f82
src: simplify and inline pl_Get()
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
78e0f0351a
Lua: do not call luaopen_volume() twice for interfaces
12 years ago
Rémi Denis-Courmont
6766179f9a
Cosmetic
12 years ago
Rémi Denis-Courmont
216b14b6b1
Lua: remove cargo cult check for the private data of the input thread
12 years ago
Rémi Duraffort
84feac2809
lua sd: fix potential memory leaks (cdi #1048936 )
13 years ago
Maxim Bublis
f0b3483323
Fixed warnings on duplicate const modifiers.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
13 years ago
Rémi Denis-Courmont
d35df2cf43
lua: small macro factorization
13 years ago
Rémi Denis-Courmont
11ffab8a59
lua: separate generic and interface-specific net functions
13 years ago
Rémi Denis-Courmont
f07b45fc15
lua: fix NULL dereference and flawed logic
13 years ago