[vlc-commits] lua: Move vlclua_get_player_internal to misc

Hugo Beauzée-Luyssen git at videolan.org
Fri May 29 13:12:25 CEST 2020


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon May 25 14:13:48 2020 +0200| [9618772c5650e33eac70db88222d5152ec03074b] | committer: Hugo Beauzée-Luyssen

lua: Move vlclua_get_player_internal to misc

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9618772c5650e33eac70db88222d5152ec03074b
---

 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
 



More information about the vlc-commits mailing list