]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/growl.m
Add a function to get the Title and fallback to the name if the title is empty.
[vlc] / modules / misc / notify / growl.m
index c1b07eb27092e1ce877f272504a40e44b7de2394..19c890088ab9f8a15db3fe18b35c0d4f9e2efd41 100644 (file)
@@ -180,17 +180,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 );