[vlc-devel] [PATCH] lua: player: remove incorrect const
Romain Vimont
rom1v at videolabs.io
Thu May 2 12:12:40 CEST 2019
A title list can be held, so vlc_player_GetTitleList() returns a pointer
to a non-const title list.
---
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);
--
2.20.1
More information about the vlc-devel
mailing list