Mercurial > audlegacy-plugins
changeset 1029:a33470329dbe trunk
[svn] - NP pings apparently do not affect musical profile, so queue tracks for submission
author | nenolod |
---|---|
date | Sat, 12 May 2007 00:21:55 -0700 |
parents | b5de3b4129a6 |
children | 9dae0c13a65f |
files | ChangeLog src/scrobbler/scrobbler.c |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat May 12 00:19:43 2007 -0700 +++ b/ChangeLog Sat May 12 00:21:55 2007 -0700 @@ -1,3 +1,11 @@ +2007-05-12 07:19:43 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [2220] + - fully update to AudioScrobbler 1.2 protocol + + trunk/src/scrobbler/scrobbler.c | 185 +++++++++++++++++++++++++--------------- + 1 file changed, 118 insertions(+), 67 deletions(-) + + 2007-05-12 05:52:07 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [2218] - some more work here
--- a/src/scrobbler/scrobbler.c Sat May 12 00:19:43 2007 -0700 +++ b/src/scrobbler/scrobbler.c Sat May 12 00:21:55 2007 -0700 @@ -976,13 +976,16 @@ void sc_addentry(GMutex *mutex, TitleInput *tuple, int len) { g_mutex_lock(mutex); - if (sc_submit_np(tuple)) - q_put(tuple, len); + + sc_submit_np(tuple); + q_put(tuple, len); + /* * This will help make sure the queue will be saved on a nasty * segfault... */ dump_queue(); + g_mutex_unlock(mutex); }