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().
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user