Fix playlist use. Fix #2153
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 4 Oct 2008 15:26:28 +0000 (16:26 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 4 Oct 2008 17:48:58 +0000 (18:48 +0100)
modules/misc/notify/msn.c

index 90516c4..0a2db77 100644 (file)
@@ -141,10 +141,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     char *psz_artist = NULL;
     char *psz_album = NULL;
     char *psz_buf = NULL;
-    playlist_t *p_playlist = pl_Hold( p_this );
-    input_thread_t *p_input =  playlist_CurrentInput( p_playlist );
-
-    pl_Release( p_this );
+    input_thread_t *p_input =  playlist_CurrentInput( (playlist_t *) p_this );
 
     if( !p_input ) return VLC_SUCCESS;