summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/play.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/play.c b/apps/play.c
index 71292861c9..2348f63d19 100644
--- a/apps/play.c
+++ b/apps/play.c
@@ -29,6 +29,7 @@
#include "debug.h"
#include "id3.h"
+#include "mpeg.h"
#ifdef MPEG_PLAY
#include "mpegplay.h"
@@ -43,6 +44,7 @@ void playtune(char *dir, char *file)
bool good=1;
snprintf(buffer, sizeof(buffer), "%s/%s", dir, file);
+ mpeg_play(buffer);
if(mp3info(&mp3, buffer)) {
DEBUGF("id3 failure!");
@@ -82,12 +84,6 @@ void playtune(char *dir, char *file)
lcd_update();
#endif
-#ifdef MPEG_PLAY
- snprintf(buffer,sizeof(buffer), "%s/%s", dir, file);
- mpeg_play(buffer);
- return;
-#endif
-
while(1) {
int key = button_get();