]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/msn.c
Add a function to get the Title and fallback to the name if the title is empty.
[vlc] / modules / misc / notify / msn.c
index 67951bc692b8abe2f7cfc9731bca921a6ed43516..f177f1d0fd8e97e65aa9052db8744c3f381b5ebf 100644 (file)
@@ -158,11 +158,9 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     /* Playing something ... */
     psz_artist = input_item_GetArtist( input_GetItem( p_input ) );
     psz_album = input_item_GetAlbum( input_GetItem( p_input ) );
-    psz_title = input_item_GetTitle( input_GetItem( p_input ) );
+    psz_title = input_item_GetTitleFbName( input_GetItem( p_input ) );
     if( !psz_artist ) psz_artist = strdup( "" );
     if( !psz_album ) psz_album = strdup( "" );
-    if( !psz_title )
-        psz_title = input_item_GetName( input_GetItem( p_input ) );
 
     psz_buf = str_format_meta( p_this, p_intf->p_sys->psz_format );