]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/growl.m
Use pl_Release an factorise two lines.
[vlc] / modules / misc / notify / growl.m
index fb79f1692848499285ab9dc254201af3fdd20f38..f506e966e2dbbe96ad9e127b190c00fa2733380e 100644 (file)
@@ -53,7 +53,8 @@
 #import <Foundation/Foundation.h>
 #import <Growl/GrowlDefines.h>
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_playlist.h>
 #include <vlc_meta.h>
 #include <vlc_interface.h>
@@ -92,7 +93,7 @@ vlc_module_begin();
     set_category( CAT_INTERFACE );
     set_subcategory( SUBCAT_INTERFACE_CONTROL );
     set_shortname( "Growl" );
-    set_description( _("Growl Notification Plugin") );
+    set_description( N_("Growl Notification Plugin") );
     set_capability( "interface", 0 );
     set_callbacks( Open, Close );
 vlc_module_end();
@@ -161,7 +162,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     playlist_t *p_playlist = pl_Yield( p_this );
 
     p_input = p_playlist->p_input;
-    vlc_object_release( p_playlist );
+    pl_Release( p_playlist );
 
     if( !p_input ) return VLC_SUCCESS;
     vlc_object_yield( p_input );