summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-09-01 13:39:39 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-09-01 13:39:39 +0000
commitd67c267090471b4bf7f69b8a7702c22831e99c13 (patch)
tree2fba305ca7aa16cbccd506b8a224d18cf973502a /apps
parentef197fbc9905e69fd76a76cd3a06284de7a044fb (diff)
downloadrockbox-d67c267090471b4bf7f69b8a7702c22831e99c13.tar.gz
rockbox-d67c267090471b4bf7f69b8a7702c22831e99c13.zip
Fixed the WPS codec type conditional, and removed unsupported formats from the format enum
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7441 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/metadata.c8
-rw-r--r--apps/wps-display.c2
2 files changed, 1 insertions, 9 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index b3491b8c54..f2d7ed1d5e 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -54,16 +54,8 @@ int probe_file_format(const char *filename)
54 return AFMT_FLAC; 54 return AFMT_FLAC;
55 else if (!strcasecmp("mpc", suffix)) 55 else if (!strcasecmp("mpc", suffix))
56 return AFMT_MPC; 56 return AFMT_MPC;
57 else if (!strcasecmp("aac", suffix))
58 return AFMT_AAC;
59 else if (!strcasecmp("ape", suffix))
60 return AFMT_APE;
61 else if (!strcasecmp("wma", suffix))
62 return AFMT_WMA;
63 else if ((!strcasecmp("a52", suffix)) || (!strcasecmp("ac3", suffix))) 57 else if ((!strcasecmp("a52", suffix)) || (!strcasecmp("ac3", suffix)))
64 return AFMT_A52; 58 return AFMT_A52;
65 else if (!strcasecmp("rm", suffix))
66 return AFMT_REAL;
67 else if (!strcasecmp("wv", suffix)) 59 else if (!strcasecmp("wv", suffix))
68 return AFMT_WAVPACK; 60 return AFMT_WAVPACK;
69 61
diff --git a/apps/wps-display.c b/apps/wps-display.c
index e7ee40cf0d..43524d0189 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -616,7 +616,7 @@ static char* get_tag(struct mp3entry* cid3,
616 return buf; 616 return buf;
617 617
618 case 'c': /* File Codec */ 618 case 'c': /* File Codec */
619 *intval = id3->codectype+1; 619 *intval = id3->codectype-1;
620 return id3_get_codec(id3); 620 return id3_get_codec(id3);
621 } 621 }
622 break; 622 break;