diff options
author | Max Kellermann <max@duempel.org> | 2012-02-12 18:25:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-02-12 18:29:05 +0100 |
commit | 4a23a4bfee5c7b213da4f72ae858ab69840ccbdc (patch) | |
tree | 70d084568f2539f259c97d7c1cfe6e796a0a691b /src/tag_id3.c | |
parent | ac3ad452c03292e4c57b0d0e21c2dd407eb03a27 (diff) |
tag_{ape,id3}: remove the _load() functions
Use _scan() instead, to have more control.
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; -} |