[vlc-commits] lua: fix playlist locking

Rémi Denis-Courmont git at videolan.org
Sun Nov 20 15:32:15 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 20 16:31:48 2016 +0200| [9aaa9f7fbef3b1da0eacb288621ac92cd7251917] | committer: Rémi Denis-Courmont

lua: fix playlist locking

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

 modules/lua/libs/playlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/lua/libs/playlist.c b/modules/lua/libs/playlist.c
index 78b61c9..1246448 100644
--- a/modules/lua/libs/playlist.c
+++ b/modules/lua/libs/playlist.c
@@ -299,8 +299,8 @@ static int vlclua_playlist_search( lua_State *L )
     const char *psz_string = luaL_optstring( L, 1, "" );
     PL_LOCK;
     playlist_LiveSearchUpdate( p_playlist, p_playlist->p_root, psz_string, true );
-    PL_UNLOCK;
     push_playlist_item( L, p_playlist->p_root );
+    PL_UNLOCK;
     return 1;
 }
 



More information about the vlc-commits mailing list