diff src/scrobbler/plugin.c @ 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 be03e09c7c20
children 13bb2cf2f9e6
line wrap: on
line diff
--- 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 */