Fixed playlist control corruption on dircache systems

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9834 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2006-04-30 04:40:56 +00:00
parent 290801fe0b
commit fede7ff6f2

View file

@ -1212,7 +1212,11 @@ static void playlist_thread(void)
)
{
if (playlist->num_cached > 0)
{
mutex_lock(&playlist->control_mutex);
flush_cached_control(playlist);
mutex_unlock(&playlist->control_mutex);
}
sync_control(playlist, true);
}