mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-04-10 17:03:35 +02:00
initial import
This commit is contained in:
24
media-plugins/xmms-scrobbler/files/scrobbler.c.patch
Normal file
24
media-plugins/xmms-scrobbler/files/scrobbler.c.patch
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user