[vlc-devel] commit: DBus: no need to lock playlist to add callbacks ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Feb 9 22:34:20 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb  9 23:29:32 2010 +0200| [707aac4dd5797366932b570908a3ddf901c20c66] | committer: Rémi Denis-Courmont 

DBus: no need to lock playlist to add callbacks

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

 modules/control/dbus.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/control/dbus.c b/modules/control/dbus.c
index 5fcab72..4e8dbae 100644
--- a/modules/control/dbus.c
+++ b/modules/control/dbus.c
@@ -748,7 +748,6 @@ static int Open( vlc_object_t *p_this )
     p_playlist = pl_Get( p_intf );
     p_sys->p_playlist = p_playlist;
 
-    PL_LOCK;
     var_AddCallback( p_playlist, "item-current", AllCallback, p_intf );
     var_AddCallback( p_playlist, "intf-change", AllCallback, p_intf );
     var_AddCallback( p_playlist, "playlist-item-append", AllCallback, p_intf );
@@ -756,7 +755,6 @@ static int Open( vlc_object_t *p_this )
     var_AddCallback( p_playlist, "random", AllCallback, p_intf );
     var_AddCallback( p_playlist, "repeat", AllCallback, p_intf );
     var_AddCallback( p_playlist, "loop", AllCallback, p_intf );
-    PL_UNLOCK;
 
     UpdateCaps( p_intf );
 




More information about the vlc-devel mailing list