]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/growl_udp.c
Add a function to get the Title and fallback to the name if the title is empty.
[vlc] / modules / misc / notify / growl_udp.c
index 4f0387b694854074a5fad1b83f759c6d014d354e..3ef0e9e76addcca3951638e179b6ad6235e1df96 100644 (file)
@@ -142,17 +142,12 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     /* Playing something ... */
     input_item_t *p_item = input_GetItem( p_input );
 
-    psz_title = input_item_GetTitle( p_item );
+    psz_title = input_item_GetTitleFbName( p_item );
     if( EMPTY_STR( psz_title ) )
     {
         free( psz_title );
-        psz_title = input_item_GetName( input_GetItem( p_input ) );
-        if( EMPTY_STR( psz_title ) )
-        {
-            free( psz_title );
-            vlc_object_release( p_input );
-            return VLC_SUCCESS;
-        }
+        vlc_object_release( p_input );
+        return VLC_SUCCESS;
     }
 
     psz_artist = input_item_GetArtist( p_item );