diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-01 13:19:36 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-01 13:19:36 +0000 |
commit | ef197fbc9905e69fd76a76cd3a06284de7a044fb (patch) | |
tree | 7ed09f946f53047360cf136fb0eca965559cdb94 /apps | |
parent | d887c176c1e18d90fca568edd195045c2ff1d915 (diff) | |
download | rockbox-ef197fbc9905e69fd76a76cd3a06284de7a044fb.tar.gz rockbox-ef197fbc9905e69fd76a76cd3a06284de7a044fb.zip |
Added possibility for conditionals for the song rating and codec type WPS tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7440 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/wps-display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index fa6494ecee..e7ee40cf0d 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c | |||
@@ -616,6 +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 | return id3_get_codec(id3); | 620 | return id3_get_codec(id3); |
620 | } | 621 | } |
621 | break; | 622 | break; |
@@ -834,6 +835,7 @@ static char* get_tag(struct mp3entry* cid3, | |||
834 | return buf; | 835 | return buf; |
835 | case 'r': /* Rating */ | 836 | case 'r': /* Rating */ |
836 | *flags |= WPS_REFRESH_STATIC; | 837 | *flags |= WPS_REFRESH_STATIC; |
838 | *intval = cid3->rating+1; | ||
837 | snprintf(buf, buf_size, "%d", cid3->rating); | 839 | snprintf(buf, buf_size, "%d", cid3->rating); |
838 | return buf; | 840 | return buf; |
839 | } | 841 | } |