diff options
| -rw-r--r-- | apps/tree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index 9d9ae61..253a8f1 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -259,7 +259,8 @@ bool dirbrowse(char *root) switch(button) { case TREE_EXIT: - play_mode = 0; + if ( play_mode == 1 ) + play_mode = 0; i=strlen(currdir); if (i>1) { while (currdir[i-1]!='/') @@ -279,8 +280,10 @@ bool dirbrowse(char *root) start = dircursor = 0; restore = true; } - else + else { mpeg_stop(); + play_mode = 0; + } break; case TREE_ENTER: |