Commit 6efc10f0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lua/playlist: do not handle impossible error

parent 969a8451
...@@ -130,11 +130,10 @@ static int vlclua_playlist_gotoitem( lua_State * L ) ...@@ -130,11 +130,10 @@ static int vlclua_playlist_gotoitem( lua_State * L )
int i_id = luaL_checkint( L, 1 ); int i_id = luaL_checkint( L, 1 );
playlist_t *p_playlist = vlclua_get_playlist_internal( L ); playlist_t *p_playlist = vlclua_get_playlist_internal( L );
PL_LOCK; PL_LOCK;
int i_ret = playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, NULL,
true, NULL, playlist_ItemGetById( p_playlist, i_id ) );
playlist_ItemGetById( p_playlist, i_id ) );
PL_UNLOCK; PL_UNLOCK;
return vlclua_push_ret( L, i_ret ); return vlclua_push_ret( L, VLC_SUCCESS );
} }
static int vlclua_playlist_delete( lua_State * L ) static int vlclua_playlist_delete( lua_State * L )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment