summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playback.c9
-rw-r--r--apps/playlist.c10
2 files changed, 11 insertions, 8 deletions
diff --git a/apps/playback.c b/apps/playback.c
index ed581cd36a..87773f89ef 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1375,9 +1375,12 @@ static void codec_thread(void)
1375 { 1375 {
1376 const char *codec_fn = 1376 const char *codec_fn =
1377 get_codec_filename(curtrack_id3.codectype); 1377 get_codec_filename(curtrack_id3.codectype);
1378 LOGFQUEUE("codec > codec Q_CODEC_LOAD_DISK"); 1378 if (codec_fn)
1379 queue_post(&codec_queue, Q_CODEC_LOAD_DISK, 1379 {
1380 (intptr_t)codec_fn); 1380 LOGFQUEUE("codec > codec Q_CODEC_LOAD_DISK");
1381 queue_post(&codec_queue, Q_CODEC_LOAD_DISK,
1382 (intptr_t)codec_fn);
1383 }
1381 } 1384 }
1382 } 1385 }
1383 break; 1386 break;
diff --git a/apps/playlist.c b/apps/playlist.c
index 644329c5bf..b68a47e75d 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -654,8 +654,12 @@ static int create_and_play_dir(int direction, bool play_last)
654 playlist_start(index, 0); 654 playlist_start(index, 0);
655#endif 655#endif
656 } 656 }
657
658 /* we've overwritten the dircache when getting the next/previous dir,
659 so the tree browser context will need to be reloaded */
660 reload_directory();
657 } 661 }
658 662
659 return index; 663 return index;
660} 664}
661 665
@@ -1577,10 +1581,6 @@ static int get_next_dir(char *dir, bool is_forward, bool recursion)
1577 } 1581 }
1578 } 1582 }
1579 1583
1580 /* we've overwritten the dircache so tree browser will need to be
1581 reloaded */
1582 reload_directory();
1583
1584 /* restore dirfilter & sort_dir */ 1584 /* restore dirfilter & sort_dir */
1585 *(tc->dirfilter) = dirfilter; 1585 *(tc->dirfilter) = dirfilter;
1586 global_settings.sort_dir = sort_dir; 1586 global_settings.sort_dir = sort_dir;