]> git.sesse.net Git - vlc/blobdiff - modules/control/http/mvar.c
playlist: add real functions for locking
[vlc] / modules / control / http / mvar.c
index eead1fe5707cba3a63883c00cb925f428b9e09a0..c25dd34d29cd6b2c9ae17b55d7003ffdcafd4a27 100644 (file)
@@ -287,9 +287,9 @@ mvar_t *mvar_PlaylistSetNew( intf_thread_t *p_intf, char *name,
                                  playlist_t *p_pl )
 {
     mvar_t *s = mvar_New( name, "set" );
-    vlc_object_lock( p_pl );
+    playlist_Lock( p_pl );
     PlaylistListNode( p_intf, p_pl, p_pl->p_root_category , name, s, 0 );
-    vlc_object_unlock( p_pl );
+    playlist_Unlock( p_pl );
     return s;
 }