discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=764297867cc67275175a3e5b868fcb77b7688e67

commit 764297867cc67275175a3e5b868fcb77b7688e67
Author: zmike <michael.blumenkra...@gmail.com>
Date:   Wed Apr 15 22:20:26 2015 -0400

    fix apm to add all new/updated albums, not just first album
---
 src/modules/auto_playlist_manager.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/modules/auto_playlist_manager.c 
b/src/modules/auto_playlist_manager.c
index 5f8cc2e..5be64e3 100644
--- a/src/modules/auto_playlist_manager.c
+++ b/src/modules/auto_playlist_manager.c
@@ -19,6 +19,7 @@ static Ecore_Timer *update_timer;
 
 static Eina_List *adds;
 static unsigned int wait_count;
+static unsigned int last_queue_length;
 
 static void auto_playlist_manager_shutdown(void);
 
@@ -187,6 +188,7 @@ run_adds(void)
    char *file;
    Eina_List *l, *ll;
 
+   last_queue_length = empd_queue_length;
    EINA_LIST_FOREACH_SAFE(adds, l, ll, file)
      {
         const char *a, *b = NULL;
@@ -287,7 +289,7 @@ static Eina_Bool
 queue_update()
 {
    
-   if (adds && wait_count) wait_count--;
+   if (wait_count) wait_count -= (empd_queue_length - last_queue_length);
    if (adds && (!wait_count))
      run_adds();
    return ECORE_CALLBACK_RENEW;

-- 


Reply via email to