[vlc-commits] httpd: do not use lock_and_wait

Rémi Denis-Courmont git at videolan.org
Sun Mar 25 19:40:34 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 25 20:27:14 2012 +0300| [df26e053764357b60e9e5f2d15f2f920427680ca] | committer: Rémi Denis-Courmont

httpd: do not use lock_and_wait

If there is nothing to do, then the interface thread can finish.

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

 share/lua/intf/http.lua |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua
index 9d3e7ed..fe6716a 100644
--- a/share/lua/intf/http.lua
+++ b/share/lua/intf/http.lua
@@ -332,6 +332,3 @@ end
 h = vlc.httpd()
 local root_acl = load_dir( http_dir )
 local a = h:handler("/art",nil,nil,root_acl,callback_art,nil)
-
-while not vlc.misc.lock_and_wait() do end -- everything happens in callbacks
-



More information about the vlc-commits mailing list