[vlc-devel] [PATCH 1/3] lua: Move vlclua_get_player_internal to misc
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Wed May 27 11:22:55 CEST 2020
---
modules/lua/libs/input.c | 5 -----
modules/lua/libs/misc.c | 6 ++++++
modules/lua/libs/misc.h | 1 +
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index 4be132ecba..460dd79c83 100644
--- a/modules/lua/libs/input.c
+++ b/modules/lua/libs/input.c
@@ -45,11 +45,6 @@
#include "../libs.h"
#include "../extension.h"
-vlc_player_t *vlclua_get_player_internal(lua_State *L) {
- vlc_playlist_t *playlist = vlclua_get_playlist_internal(L);
- return vlc_playlist_GetPlayer(playlist);
-}
-
vout_thread_t *vlclua_get_vout_internal(lua_State *L)
{
vlc_player_t *player = vlclua_get_player_internal(L);
diff --git a/modules/lua/libs/misc.c b/modules/lua/libs/misc.c
index 25f44c3047..10869afe49 100644
--- a/modules/lua/libs/misc.c
+++ b/modules/lua/libs/misc.c
@@ -79,6 +79,12 @@ vlc_object_t * vlclua_get_this( lua_State *L )
return vlclua_get_object( L, vlclua_set_this );
}
+vlc_player_t *vlclua_get_player_internal( lua_State *L )
+{
+ vlc_playlist_t *playlist = vlclua_get_playlist_internal(L);
+ return vlc_playlist_GetPlayer(playlist);
+}
+
/*****************************************************************************
* VLC error code translation
*****************************************************************************/
diff --git a/modules/lua/libs/misc.h b/modules/lua/libs/misc.h
index d44aa58ec9..a6dc467ec8 100644
--- a/modules/lua/libs/misc.h
+++ b/modules/lua/libs/misc.h
@@ -30,6 +30,7 @@ void *vlclua_get_object( lua_State *, void *id );
vlc_object_t * vlclua_get_this( lua_State * );
int vlclua_push_ret( lua_State *, int );
+vlc_player_t *vlclua_get_player_internal(lua_State *L);
#endif
--
2.20.1
More information about the vlc-devel
mailing list