changeset 1499:959ebef04f70 trunk

[svn] - Don't show "(null)" information.
author nhjm449
date Fri, 04 Aug 2006 02:46:05 -0700
parents 01353675606b
children 188437eb996b
files ChangeLog Plugins/General/notify/notify.c
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Aug 04 01:52:07 2006 -0700
+++ b/ChangeLog	Fri Aug 04 02:46:05 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-04 08:52:07 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1910]
+  - WTF
+  
+
+  Changes:        Modified:
+  +2 -2           trunk/Plugins/General/notify/notify.c  
+
+
 2006-08-04 08:46:11 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1908]
   - don't mind me, i'm being silly tonight
--- a/Plugins/General/notify/notify.c	Fri Aug 04 01:52:07 2006 -0700
+++ b/Plugins/General/notify/notify.c	Fri Aug 04 02:46:05 2006 -0700
@@ -76,8 +76,8 @@
 			return TRUE;
 
 		tmpbuf = g_strdup_printf("<b>%s</b>\n<i>%s</i>\n%s",
-			tuple->performer,
-			tuple->album_name,
+			(tuple->performer ? tuple->performer : "Unknown Artist"),
+			(tuple->album_name ? tuple->album_name : "Unknown Album"),
 			tuple->track_name);
 
 		do_notification("Audacious", tmpbuf, DATA_DIR "/pixmaps/audacious.png");