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)
|
run_adds(void)
|
||||||
{
|
{
|
||||||
char *file;
|
char *file;
|
||||||
Eina_List *l, *ll;
|
Eina_List *l;
|
||||||
|
|
||||||
last_queue_length = empd_queue_length;
|
last_queue_length = empd_queue_length;
|
||||||
EINA_LIST_FOREACH_SAFE(adds, l, ll, file)
|
while (adds)
|
||||||
{
|
{
|
||||||
const char *a, *b = NULL;
|
const char *a, *b = NULL;
|
||||||
Eina_Iterator *it;
|
Eina_Iterator *it;
|
||||||
|
@ -213,6 +213,8 @@ run_adds(void)
|
||||||
Elm_Object_Item *item;
|
Elm_Object_Item *item;
|
||||||
Eina_Bool done = EINA_FALSE;
|
Eina_Bool done = EINA_FALSE;
|
||||||
|
|
||||||
|
l = eina_list_data_get(adds);
|
||||||
|
file = eina_list_data_get(l);
|
||||||
a = strrchr(file, '/');
|
a = strrchr(file, '/');
|
||||||
if (a)
|
if (a)
|
||||||
b = strchr(file, '/');
|
b = strchr(file, '/');
|
||||||
|
@ -283,6 +285,7 @@ run_adds(void)
|
||||||
{
|
{
|
||||||
char *f2;
|
char *f2;
|
||||||
|
|
||||||
|
/* sequentially append all songs from matching directory structure */
|
||||||
empd_empdd_add_list_call(empd_proxy, file);
|
empd_empdd_add_list_call(empd_proxy, file);
|
||||||
post_add(0, file);
|
post_add(0, file);
|
||||||
while (eina_list_next(l))
|
while (eina_list_next(l))
|
||||||
|
@ -297,7 +300,6 @@ run_adds(void)
|
||||||
}
|
}
|
||||||
adds = eina_list_remove_list(adds, l);
|
adds = eina_list_remove_list(adds, l);
|
||||||
free(file);
|
free(file);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue