]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/growl.m
s/pl_Yield/pl_Hold/
[vlc] / modules / misc / notify / growl.m
index 6226404d494ba9563237d7c83d41f9391770183d..53c6a4e82534735e04be399c4f780ad7e5f8f3d1 100644 (file)
@@ -119,7 +119,7 @@ static int Open( vlc_object_t *p_this )
     snprintf (buf, sizeof (buf), "%s/vlc48x48.png", data_path);
     p_sys->default_icon = (CFDataRef) readFile( buf );
 
-    playlist_t *p_playlist = pl_Yield( p_intf );
+    playlist_t *p_playlist = pl_Hold( p_intf );
     var_AddCallback( p_playlist, "playlist-current", ItemChange, p_intf );
     pl_Release( p_intf );
 
@@ -140,7 +140,7 @@ static void Close( vlc_object_t *p_this )
     [p_sys->p_pool release];
     free( p_sys );
 
-    playlist_t *p_playlist = pl_Yield( p_this );
+    playlist_t *p_playlist = pl_Hold( p_this );
     var_DelCallback( p_playlist, "playlist-current", ItemChange, p_this );
     pl_Release( p_this );
 }
@@ -159,7 +159,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     char *psz_artist        = NULL;
     char *psz_album         = 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 );