summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-04-03 18:52:58 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-04-03 18:52:58 +0000
commita99bc99b665af9270ae8cada6ae32d4e8705f3d3 (patch)
tree9702e4258d54a3b725a077c4e25c503fdb8fabdc /apps
parent38385a52844cacc7c8d3dcb162fa2713267719b0 (diff)
downloadrockbox-a99bc99b665af9270ae8cada6ae32d4e8705f3d3.tar.gz
rockbox-a99bc99b665af9270ae8cada6ae32d4e8705f3d3.zip
Do not crash when resuming playback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9464 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 77da24d9ee..3a0a34b621 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -364,11 +364,16 @@ static int update_dir(void)
364/* load tracks from specified directory to resume play */ 364/* load tracks from specified directory to resume play */
365void resume_directory(const char *dir) 365void resume_directory(const char *dir)
366{ 366{
367 bool id3db = *tc.dirfilter == SHOW_ID3DB;
368
367 if (ft_load(&tc, dir) < 0) 369 if (ft_load(&tc, dir) < 0)
368 return; 370 return;
369 lastdir[0] = 0; 371 lastdir[0] = 0;
370 372
371 ft_build_playlist(&tc, 0); 373 ft_build_playlist(&tc, 0);
374
375 if (id3db)
376 tagtree_load(&tc);
372} 377}
373 378
374/* Returns the current working directory and also writes cwd to buf if 379/* Returns the current working directory and also writes cwd to buf if