[vlc-commits] lua/playlist: do not handle impossible error

Rémi Denis-Courmont git at videolan.org
Mon Dec 15 18:25:18 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 15 17:39:39 2014 +0200| [6efc10f0a54c3164f5df8ca50482fb35cd9d3d12] | committer: Rémi Denis-Courmont

lua/playlist: do not handle impossible error

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

 modules/lua/libs/playlist.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/lua/libs/playlist.c b/modules/lua/libs/playlist.c
index 8bcc8a7..f657217 100644
--- a/modules/lua/libs/playlist.c
+++ b/modules/lua/libs/playlist.c
@@ -130,11 +130,10 @@ 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;
-    int i_ret = playlist_Control( p_playlist, PLAYLIST_VIEWPLAY,
-                                  true, NULL,
-                                  playlist_ItemGetById( p_playlist, i_id ) );
+    playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, NULL,
+                      playlist_ItemGetById( p_playlist, i_id ) );
     PL_UNLOCK;
-    return vlclua_push_ret( L, i_ret );
+    return vlclua_push_ret( L, VLC_SUCCESS );
 }
 
 static int vlclua_playlist_delete( lua_State * L )



More information about the vlc-commits mailing list