when running apm update adds, loop infinitely until all adds are processed
previously this would stop processing after appending a single album, likely not what is desired
This commit is contained in:
parent
2b2e3baf0d
commit
f8db8f14b5
|
@ -202,10 +202,10 @@ static void
|
|||
run_adds(void)
|
||||
{
|
||||
char *file;
|
||||
Eina_List *l, *ll;
|
||||
Eina_List *l;
|
||||
|
||||
last_queue_length = empd_queue_length;
|
||||
EINA_LIST_FOREACH_SAFE(adds, l, ll, file)
|
||||
while (adds)
|
||||
{
|
||||
const char *a, *b = NULL;
|
||||
Eina_Iterator *it;
|
||||
|
@ -213,6 +213,8 @@ run_adds(void)
|
|||
Elm_Object_Item *item;
|
||||
Eina_Bool done = EINA_FALSE;
|
||||
|
||||
l = eina_list_data_get(adds);
|
||||
file = eina_list_data_get(l);
|
||||
a = strrchr(file, '/');
|
||||
if (a)
|
||||
b = strchr(file, '/');
|
||||
|
@ -283,6 +285,7 @@ run_adds(void)
|
|||
{
|
||||
char *f2;
|
||||
|
||||
/* sequentially append all songs from matching directory structure */
|
||||
empd_empdd_add_list_call(empd_proxy, file);
|
||||
post_add(0, file);
|
||||
while (eina_list_next(l))
|
||||
|
@ -297,7 +300,6 @@ run_adds(void)
|
|||
}
|
||||
adds = eina_list_remove_list(adds, l);
|
||||
free(file);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue