[vlc-devel] [PATCH 34/40] lua: use playlist_ViewPlay(), fix aliasing
RĂ©mi Denis-Courmont
remi at remlab.net
Sun May 14 17:46:04 CEST 2017
(The node parameter must be a playlist_item_t *, cannot be a void *.)
---
modules/lua/libs/playlist.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/lua/libs/playlist.c b/modules/lua/libs/playlist.c
index eede9e2235..d03c63e541 100644
--- a/modules/lua/libs/playlist.c
+++ b/modules/lua/libs/playlist.c
@@ -130,8 +130,8 @@ static int vlclua_playlist_gotoitem( lua_State * L )
int i_id = luaL_checkint( L, 1 );
playlist_t *p_playlist = vlclua_get_playlist_internal( L );
PL_LOCK;
- playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, NULL,
- playlist_ItemGetById( p_playlist, i_id ) );
+ playlist_ViewPlay( p_playlist, NULL,
+ playlist_ItemGetById( p_playlist, i_id ) );
PL_UNLOCK;
return vlclua_push_ret( L, VLC_SUCCESS );
}
--
2.11.0
More information about the vlc-devel
mailing list