]> git.sesse.net Git - vlc/commitdiff
growl: fix an assert.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 5 May 2009 19:39:17 +0000 (21:39 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 5 May 2009 19:39:17 +0000 (21:39 +0200)
modules/misc/notify/growl.m
modules/misc/notify/growl_udp.c

index b99904d3461677675a18b38b07df9d571aa06a60..6026d12cdc82deab73bec3bccd53c03335555d3f 100644 (file)
@@ -159,10 +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_Hold( p_this );
-
-    p_input = playlist_CurrentInput( p_playlist );
-    pl_Release( p_this );
+    p_input = playlist_CurrentInput( (playlist_t*)p_this );
 
     if( !p_input ) return VLC_SUCCESS;
     vlc_object_hold( p_input );
index 6e37f26abd0b61accc2d3de85303b39527289570..1b2b79e4a0ba7b033d0c4c52dfbb6681b6dd0d13 100644 (file)
@@ -121,10 +121,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_Hold( p_this );
-
-    p_input = playlist_CurrentInput( p_playlist );
-    pl_Release( p_this );
+    p_input = playlist_CurrentInput( (playlist_t*)p_this );
 
     if( !p_input ) return VLC_SUCCESS;
     vlc_object_hold( p_input );