# HG changeset patch # User giacomo # Date 1172600117 28800 # Node ID c380f078aa2606233822f65edc6ba4fe225ac985 # Parent 6ec1a12cbf0c3b2511d3ce4750645d862fea4782 [svn] - scrobbler: check that there are files in playlist at all, before looking up whether they are http sources or not diff -r 6ec1a12cbf0c -r c380f078aa26 ChangeLog --- 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 + 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 revision [1582] - fix icecast2, i think. diff -r 6ec1a12cbf0c -r c380f078aa26 src/scrobbler/plugin.c --- 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 */