summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-01-17 22:28:36 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-01-17 22:28:36 +0000
commitd2cc5ce58e875a28742ab2fb1707e195b7fc1e34 (patch)
tree7e874330a1db76711d63d76bc77204032c8296b4 /apps/tagcache.c
parent0171408408cfaf074a8c2f2c3eddbae658e45e6c (diff)
downloadrockbox-d2cc5ce58e875a28742ab2fb1707e195b7fc1e34.zip
rockbox-d2cc5ce58e875a28742ab2fb1707e195b7fc1e34.tar.gz
rockbox-d2cc5ce58e875a28742ab2fb1707e195b7fc1e34.tar.bz2
rockbox-d2cc5ce58e875a28742ab2fb1707e195b7fc1e34.tar.xz
Fix player becoming unresponsive on Stop / Pause in some cases.
Fix for FS#11856: In tagtree_buffer_event, do not wait for database to come online as that may never happen. Rather, wait until it either has come online or has decided that this will never happen. Added a new function to tagcache.c to export this information. Flyspray: FS#11865 Author: Michael Hohmuth git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29081 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index b3a16a3..50c6253 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -4746,6 +4746,10 @@ bool tagcache_is_initialized(void)
{
return tc_stat.initialized;
}
+bool tagcache_is_fully_initialized(void)
+{
+ return tc_stat.readyvalid;
+}
bool tagcache_is_usable(void)
{
return tc_stat.initialized && tc_stat.ready;