summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2015-09-06 09:28:52 -0400
committerzmike <michael.blumenkrantz@gmail.com>2015-09-06 09:28:52 -0400
commit2f8bd94ee7d280bed3321a71d9a05eaf95a5ffc8 (patch)
tree9c15ffd858a82404a2e041de57b9b00a10b07f6f /src
parent2ac5edb399954fbe44f0d1d403f7b1bbba007f2b (diff)
simplify filesystem loader thread conditional
Diffstat (limited to 'src')
-rw-r--r--src/modules/filesystem_loader.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/modules/filesystem_loader.c b/src/modules/filesystem_loader.c
index d616a28..fd9397e 100644
--- a/src/modules/filesystem_loader.c
+++ b/src/modules/filesystem_loader.c
@@ -115,16 +115,8 @@ fsrun(FSInfo *fsi, Ecore_Thread *eth)
115 memcpy(buf, fsi->uri, MIN((unsigned int)(p - fsi->uri), sizeof(buf) - 1)); 115 memcpy(buf, fsi->uri, MIN((unsigned int)(p - fsi->uri), sizeof(buf) - 1));
116 } 116 }
117 117
118 if (fsi->req->album) 118 it = eina_file_stat_ls(isdir ? fsi->uri : buf);
119 { 119 files = fsscan(it, files, !!fsi->req->album);
120 it = eina_file_stat_ls(isdir ? fsi->uri : buf);
121 files = fsscan(it, files, EINA_TRUE);
122 }
123 else
124 {
125 it = eina_file_stat_ls(isdir ? fsi->uri : buf);
126 files = fsscan(it, files, EINA_FALSE);
127 }
128 eina_iterator_free(it); 120 eina_iterator_free(it);
129 if ((!files) && (!isdir)) 121 if ((!files) && (!isdir))
130 { 122 {