summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Medinas <metalgod@gentoo.org>2005-10-23 21:41:09 +0000
committerLuis Medinas <metalgod@gentoo.org>2005-10-23 21:41:09 +0000
commit991d608352b465c9b743388730918804ce06a2fb (patch)
tree261edaea91373f9a572c75d905299aa961dbe28b /media-plugins/xmms-scrobbler/files/scrobbler.c.patch
parentAdd russian translation, closes bug #110251 (diff)
downloadgentoo-2-991d608352b465c9b743388730918804ce06a2fb.tar.gz
gentoo-2-991d608352b465c9b743388730918804ce06a2fb.tar.bz2
gentoo-2-991d608352b465c9b743388730918804ce06a2fb.zip
Version Bump. Thanks to Ben Jackson <benj@puremourning.co.uk> and Felix Braun <Felix.Braun@mail.mcgill.ca> for Debian patches. Closes bug #99606.
(Portage version: 2.0.53_rc6)
Diffstat (limited to 'media-plugins/xmms-scrobbler/files/scrobbler.c.patch')
-rw-r--r--media-plugins/xmms-scrobbler/files/scrobbler.c.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/media-plugins/xmms-scrobbler/files/scrobbler.c.patch b/media-plugins/xmms-scrobbler/files/scrobbler.c.patch
new file mode 100644
index 000000000000..e61fb900c42d
--- /dev/null
+++ b/media-plugins/xmms-scrobbler/files/scrobbler.c.patch
@@ -0,0 +1,24 @@
+--- orig/scrobbler.c
++++ mod/scrobbler.c
+@@ -488,6 +488,7 @@
+ {
+ GString *submitentry;
+ int nsubmit;
++ int i;
+ int wait;
+
+ if(sc_submit_timeout < time(NULL) && sc_bad_users < 3)
+@@ -512,7 +513,12 @@
+ pthread_mutex_lock(&mutex);
+
+ #ifdef ALLOW_MULTIPLE
+- q_free();
++ if (nsubmit < q_len()) {
++ for (i=0; i<nsubmit; i++)
++ q_get();
++ } else {
++ q_free();
++ }
+ #else
+ q_get();
+ #endif