]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/telepathy.c
s/pl_Yield/pl_Hold/
[vlc] / modules / misc / notify / telepathy.c
index 71dc63cfac599770e589585896e395da56e70b60..91950fae38f2f141194982abecbfefdf9e60d825 100644 (file)
@@ -122,7 +122,7 @@ static int Open( vlc_object_t *p_this )
 
     p_intf->p_sys->i_id = -1;
 
-    p_playlist = pl_Yield( p_intf );
+    p_playlist = pl_Hold( p_intf );
     var_AddCallback( p_playlist, "item-change", ItemChange, p_intf );
     var_AddCallback( p_playlist, "playlist-current", ItemChange, p_intf );
     pl_Release( p_intf );
@@ -136,7 +136,7 @@ static int Open( vlc_object_t *p_this )
 static void Close( vlc_object_t *p_this )
 {
     intf_thread_t *p_intf = (intf_thread_t *)p_this;
-    playlist_t *p_playlist = pl_Yield( p_this );
+    playlist_t *p_playlist = pl_Hold( p_this );
 
     PL_LOCK;
     var_DelCallback( p_playlist, "item-change", ItemChange, p_intf );