diff options
Diffstat (limited to 'src/tag_id3.c')
-rw-r--r-- | src/tag_id3.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/tag_id3.c b/src/tag_id3.c index 05870152..394068d3 100644 --- a/src/tag_id3.c +++ b/src/tag_id3.c @@ -570,31 +570,3 @@ tag_id3_scan(const char *path_fs, id3_tag_delete(tag); return true; } - -struct tag *tag_id3_load(const char *file) -{ - struct tag *ret; - struct id3_tag *tag; - FILE *stream; - - stream = fopen(file, "rb"); - if (!stream) { - g_debug("tag_id3_load: Failed to open file: '%s', %s", - file, strerror(errno)); - return NULL; - } - - tag = tag_id3_find_from_beginning(stream); - if (tag == NULL) - tag = tag_id3_riff_aiff_load(stream); - if (!tag) - tag = tag_id3_find_from_end(stream); - - fclose(stream); - - if (!tag) - return NULL; - ret = tag_id3_import(tag); - id3_tag_delete(tag); - return ret; -} |