diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2002-12-09 15:01:37 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2002-12-09 15:01:37 +0000 |
| commit | cf1317c336c946ee2eeda61729171bae82d87769 (patch) | |
| tree | 9a4ea79ca5b14a267ed905ad8b80ec93c197c9c0 /apps | |
| parent | fd25bbd8ff47ba5741311d58d7c1d388f2a9e235 (diff) | |
| download | rockbox-cf1317c336c946ee2eeda61729171bae82d87769.zip rockbox-cf1317c336c946ee2eeda61729171bae82d87769.tar.gz rockbox-cf1317c336c946ee2eeda61729171bae82d87769.tar.bz2 rockbox-cf1317c336c946ee2eeda61729171bae82d87769.tar.xz | |
Added id3 version wps tag: %iv. Fixed id3v1 parsing bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2967 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/wps-display.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index 19e505c..5ac2aa1 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c @@ -295,6 +295,27 @@ static char* get_tag(struct mp3entry* id3, else return NULL; break; + + case 'v': /* id3 version */ + switch (id3->id3version) { + case ID3_VER_1_0: + return "1"; + + case ID3_VER_1_1: + return "1.1"; + + case ID3_VER_2_2: + return "2.2"; + + case ID3_VER_2_3: + return "2.3"; + + case ID3_VER_2_4: + return "2.4"; + + default: + return NULL; + } } break; |