diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index 4be132ecba6ebb155ca894f60122fb97ab776349..460dd79c83d3bf9af34e79b998a8648dfd515cde 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 25f44c30472141cf55de4c0882dfbea97d136343..10869afe494effc06ef70ed083c523e70432b690 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 d44aa58ec954973cc0bcf0c7043371561fcadd6a..a6dc467ec83263949fd05e8f8398f309853ec5c4 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