summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 9d9ae613ed..253a8f1820 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -259,7 +259,8 @@ bool dirbrowse(char *root)
259 259
260 switch(button) { 260 switch(button) {
261 case TREE_EXIT: 261 case TREE_EXIT:
262 play_mode = 0; 262 if ( play_mode == 1 )
263 play_mode = 0;
263 i=strlen(currdir); 264 i=strlen(currdir);
264 if (i>1) { 265 if (i>1) {
265 while (currdir[i-1]!='/') 266 while (currdir[i-1]!='/')
@@ -279,8 +280,10 @@ bool dirbrowse(char *root)
279 start = dircursor = 0; 280 start = dircursor = 0;
280 restore = true; 281 restore = true;
281 } 282 }
282 else 283 else {
283 mpeg_stop(); 284 mpeg_stop();
285 play_mode = 0;
286 }
284 break; 287 break;
285 288
286 case TREE_ENTER: 289 case TREE_ENTER: