summaryrefslogtreecommitdiff
path: root/apps/tagtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 377cc27ec0..f9542821d8 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -1121,9 +1121,9 @@ int tagtree_load(struct tree_context* c)
1121 case allsubentries: 1121 case allsubentries:
1122 case navibrowse: 1122 case navibrowse:
1123 logf("navibrowse..."); 1123 logf("navibrowse...");
1124 cpu_boost(true); 1124 cpu_boost_id(true, CPUBOOSTID_TAGTREE);
1125 count = retrieve_entries(c, &tcs, 0, true); 1125 count = retrieve_entries(c, &tcs, 0, true);
1126 cpu_boost(false); 1126 cpu_boost_id(false, CPUBOOSTID_TAGTREE);
1127 break; 1127 break;
1128 1128
1129 default: 1129 default:
@@ -1297,11 +1297,11 @@ bool insert_all_playlist(struct tree_context *c, int position, bool queue)
1297 char buf[MAX_PATH]; 1297 char buf[MAX_PATH];
1298 int from, to, direction; 1298 int from, to, direction;
1299 1299
1300 cpu_boost(true); 1300 cpu_boost_id(true, CPUBOOSTID_TAGTREE);
1301 if (!tagcache_search(&tcs, tag_filename)) 1301 if (!tagcache_search(&tcs, tag_filename))
1302 { 1302 {
1303 gui_syncsplash(HZ, true, str(LANG_TAGCACHE_BUSY)); 1303 gui_syncsplash(HZ, true, str(LANG_TAGCACHE_BUSY));
1304 cpu_boost(false); 1304 cpu_boost_id(false, CPUBOOSTID_TAGTREE);
1305 return false; 1305 return false;
1306 } 1306 }
1307 1307
@@ -1338,7 +1338,7 @@ bool insert_all_playlist(struct tree_context *c, int position, bool queue)
1338 } 1338 }
1339 playlist_sync(NULL); 1339 playlist_sync(NULL);
1340 tagcache_search_finish(&tcs); 1340 tagcache_search_finish(&tcs);
1341 cpu_boost(false); 1341 cpu_boost_id(false, CPUBOOSTID_TAGTREE);
1342 1342
1343 return true; 1343 return true;
1344} 1344}
@@ -1442,16 +1442,16 @@ struct tagentry* tagtree_get_entry(struct tree_context *c, int id)
1442 /* Load the next chunk if necessary. */ 1442 /* Load the next chunk if necessary. */
1443 if (realid >= current_entry_count || realid < 0) 1443 if (realid >= current_entry_count || realid < 0)
1444 { 1444 {
1445 cpu_boost(true); 1445 cpu_boost_id(true, CPUBOOSTID_TAGTREE);
1446 if (retrieve_entries(c, &tcs2, MAX(0, id - (current_entry_count / 2)), 1446 if (retrieve_entries(c, &tcs2, MAX(0, id - (current_entry_count / 2)),
1447 false) < 0) 1447 false) < 0)
1448 { 1448 {
1449 logf("retrieve failed"); 1449 logf("retrieve failed");
1450 cpu_boost(false); 1450 cpu_boost_id(false, CPUBOOSTID_TAGTREE);
1451 return NULL; 1451 return NULL;
1452 } 1452 }
1453 realid = id - current_offset; 1453 realid = id - current_offset;
1454 cpu_boost(false); 1454 cpu_boost_id(false, CPUBOOSTID_TAGTREE);
1455 } 1455 }
1456 1456
1457 return &entry[realid]; 1457 return &entry[realid];