diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-10 02:42:55 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-10 02:42:55 +0000 |
commit | 40978425da7321b2763381584543516ef5030cb1 (patch) | |
tree | ac4a693f6e56fde43e48bede8e8304b2444ba48e /src/tagTracker.c | |
parent | 2d87ffa863b5eaa24862e925e767eb9a36bd58fe (diff) | |
download | mpd-40978425da7321b2763381584543516ef5030cb1.tar.gz mpd-40978425da7321b2763381584543516ef5030cb1.tar.xz mpd-40978425da7321b2763381584543516ef5030cb1.zip |
fix artist and album stats
git-svn-id: https://svn.musicpd.org/mpd/branches/r2562-metadata-handling-rewrite@2569 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/tagTracker.c')
-rw-r--r-- | src/tagTracker.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c index fec96550a..ef95ea47a 100644 --- a/src/tagTracker.c +++ b/src/tagTracker.c @@ -48,3 +48,9 @@ void removeTagItemString(int type, char * string) { tagLists[type] = NULL; } } + +int getNumberOfTagItems(int type) { + if(tagLists[type] == NULL) return 0; + + return tagLists[type]->numberOfNodes; +} |