From 4a23a4bfee5c7b213da4f72ae858ab69840ccbdc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 12 Feb 2012 18:25:46 +0100 Subject: tag_{ape,id3}: remove the _load() functions Use _scan() instead, to have more control. --- src/tag_id3.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/tag_id3.c') diff --git a/src/tag_id3.c b/src/tag_id3.c index 058701524..394068d3f 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; -} -- cgit v1.2.3