[vlc-commits] lua: use playlist_ViewPlay(), fix aliasing
Rémi Denis-Courmont
git at videolan.org
Sun May 14 18:39:30 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun May 14 17:22:17 2017 +0300| [f4dbb8085405588a9afb3c48e782e46620daf7b1] | committer: Rémi Denis-Courmont
lua: use playlist_ViewPlay(), fix aliasing
(The node parameter must be a playlist_item_t *, cannot be a void *.)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f4dbb8085405588a9afb3c48e782e46620daf7b1
---
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 );
}
More information about the vlc-commits
mailing list