]> git.sesse.net Git - vlc/commitdiff
Fix for p_input being now hidden.
authorChristophe Mutricy <xtophe@videolan.org>
Wed, 1 Oct 2008 20:40:30 +0000 (21:40 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Wed, 1 Oct 2008 20:41:23 +0000 (21:41 +0100)
modules/misc/notify/msn.c

index 6747e0a96025be27a4ad9d76dc3d621a4f2da26f..90516c4235d6f37098ebb7eb47f33d63f1dabc7e 100644 (file)
@@ -141,14 +141,12 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     char *psz_artist = NULL;
     char *psz_album = NULL;
     char *psz_buf = NULL;
-    input_thread_t *p_input;
     playlist_t *p_playlist = pl_Hold( p_this );
+    input_thread_t *p_input =  playlist_CurrentInput( p_playlist );
 
-    p_input = p_playlist->p_input;
     pl_Release( p_this );
 
     if( !p_input ) return VLC_SUCCESS;
-    vlc_object_hold( p_input );
 
     if( p_input->b_dead || !input_GetItem(p_input)->psz_name )
     {