changeset 744:c380f078aa26 trunk

[svn] - scrobbler: check that there are files in playlist at all, before looking up whether they are http sources or not
author giacomo
date Tue, 27 Feb 2007 10:15:17 -0800
parents 6ec1a12cbf0c
children 153bb82ff081
files ChangeLog src/scrobbler/plugin.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Feb 27 06:41:02 2007 -0800
+++ b/ChangeLog	Tue Feb 27 10:15:17 2007 -0800
@@ -1,3 +1,11 @@
+2007-02-27 14:41:02 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1584]
+  - fix a crash reported by grufti.
+  
+  trunk/src/wav/wav.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-02-27 13:43:10 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1582]
   - fix icecast2, i think.
--- a/src/scrobbler/plugin.c	Tue Feb 27 06:41:02 2007 -0800
+++ b/src/scrobbler/plugin.c	Tue Feb 27 10:15:17 2007 -0800
@@ -242,9 +242,9 @@
 	/* current music number */
 	pos_c = xmms_remote_get_playlist_pos(XS_CS);
 	/* current file name */
-	file_c = xmms_remote_get_playlist_file(XS_CS, pos_c); 
+	file_c = xmms_remote_get_playlist_file(XS_CS, pos_c);
 
-	if (ishttp(file_c))
+	if ((file_c != NULL) && (ishttp(file_c)))
 		return dosubmit;
 
 	/* total number */