]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/msn.c
s/pl_Yield/pl_Hold/
[vlc] / modules / misc / notify / msn.c
index c9524430a258c0bb2c02b1f79bee0a300abec546..6747e0a96025be27a4ad9d76dc3d621a4f2da26f 100644 (file)
@@ -99,7 +99,7 @@ static int Open( vlc_object_t *p_this )
     }
     msg_Dbg( p_intf, "using format: %s", p_intf->p_sys->psz_format );
 
-    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 );
@@ -113,7 +113,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 );
 
     /* clear the MSN stuff ... else it looks like we're still playing
      * something although VLC (or the MSN plugin) is closed */
@@ -142,7 +142,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     char *psz_album = NULL;
     char *psz_buf = NULL;
     input_thread_t *p_input;
-    playlist_t *p_playlist = pl_Yield( p_this );
+    playlist_t *p_playlist = pl_Hold( p_this );
 
     p_input = p_playlist->p_input;
     pl_Release( p_this );