[vlc-commits] lua: player: remove incorrect const

Romain Vimont git at videolan.org
Fri May 3 09:52:33 CEST 2019


vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Thu May  2 12:12:40 2019 +0200| [3159390d8a1f738e7e64616c166f4a334b9f006b] | committer: Thomas Guillem

lua: player: remove incorrect const

A title list can be held, so vlc_player_GetTitleList() returns a pointer
to a non-const title list.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/lua/libs/input.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index c011f1d95f..ac69f1f7b7 100644
--- a/modules/lua/libs/input.c
+++ b/modules/lua/libs/input.c
@@ -117,8 +117,7 @@ static int vlclua_player_get_titles_count(lua_State *L)
     vlc_player_t *player = vlclua_get_player_internal(L);
 
     vlc_player_Lock(player);
-    const struct vlc_player_title_list *titles =
-            vlc_player_GetTitleList(player);
+    struct vlc_player_title_list *titles = vlc_player_GetTitleList(player);
     size_t count = titles ? vlc_player_title_list_GetCount(titles) : 0;
     vlc_player_Unlock(player);
 



More information about the vlc-commits mailing list