[vlc-devel] commit: growl: fix an assert. ( Rémi Duraffort )
git version control
git at videolan.org
Tue May 5 21:40:15 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue May 5 21:39:17 2009 +0200| [8377d828c5338d3505936bb184310983127f35fb] | committer: Rémi Duraffort
growl: fix an assert.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8377d828c5338d3505936bb184310983127f35fb
---
modules/misc/notify/growl.m | 5 +----
modules/misc/notify/growl_udp.c | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/modules/misc/notify/growl.m b/modules/misc/notify/growl.m
index b99904d..6026d12 100644
--- a/modules/misc/notify/growl.m
+++ b/modules/misc/notify/growl.m
@@ -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 );
diff --git a/modules/misc/notify/growl_udp.c b/modules/misc/notify/growl_udp.c
index 6e37f26..1b2b79e 100644
--- a/modules/misc/notify/growl_udp.c
+++ b/modules/misc/notify/growl_udp.c
@@ -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 );
More information about the vlc-devel
mailing list