summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-05-24 16:12:16 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-05-24 16:12:16 +0000
commit39295b2035fac88740412b0abfa4b2479d09a2cf (patch)
tree513a940b1934e55b23bf2e51058cc821b15c86ae /apps
parent92597ea7e08b0c196aea72fcf7845c828c2341a6 (diff)
Added mpeg_play() for target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@704 a1c6a512-1295-4272-9138-f99709370657
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();