aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/flac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-17 13:23:42 +0100
committerMax Kellermann <max@duempel.org>2009-01-17 13:23:42 +0100
commit5395f5f6b34b6a98e94c8f3e8329150a2a4b9cac (patch)
treebb1e42988bd79c452b667da84ef662b45da8aa8e /src/decoder/flac_plugin.c
parent43eefe9c41478f5605e4abd7e6c7fc6d710341e8 (diff)
downloadmpd-5395f5f6b34b6a98e94c8f3e8329150a2a4b9cac.tar.gz
mpd-5395f5f6b34b6a98e94c8f3e8329150a2a4b9cac.tar.xz
mpd-5395f5f6b34b6a98e94c8f3e8329150a2a4b9cac.zip
moved fallback APE/ID3 tag loader to song.c
Some plugins used the APE or ID3 tag loader as a fallback when their own methods of loading tags did not work. Move this code out of all decoder plugins, into song_file_update().
Diffstat (limited to '')
-rw-r--r--src/decoder/flac_plugin.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index e02c13638..19f8d7fd4 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -282,23 +282,7 @@ flac_tag_load(const char *file)
static struct tag *
flac_tag_dup(const char *file)
{
- struct tag *ret = NULL;
-
- ret = flac_tag_load(file);
- if (!ret) {
- g_debug("Failed to grab information from: %s\n", file);
- return NULL;
- }
- if (tag_is_empty(ret)) {
- struct tag *temp = tag_id3_load(file);
- if (temp) {
- temp->time = ret->time;
- tag_free(ret);
- ret = temp;
- }
- }
-
- return ret;
+ return flac_tag_load(file);
}
static void