[vlc-devel] commit: Fix playlist use. Fix #2153 (Christophe Mutricy )

git version control git at videolan.org
Sat Oct 4 20:47:46 CEST 2008


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sat Oct  4 16:26:28 2008 +0100| [9507a480bc0d34a97279365f9403f07d411ec7c6] | committer: Christophe Mutricy 

Fix playlist use. Fix #2153

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9507a480bc0d34a97279365f9403f07d411ec7c6
---

 modules/misc/notify/msn.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/modules/misc/notify/msn.c b/modules/misc/notify/msn.c
index 90516c4..0a2db77 100644
--- a/modules/misc/notify/msn.c
+++ b/modules/misc/notify/msn.c
@@ -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;
 




More information about the vlc-devel mailing list