kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=fa46dde05bad9e0b748658d066ec5e039607b6fc
commit fa46dde05bad9e0b748658d066ec5e039607b6fc Author: Kim Woelders <[email protected]> Date: Fri Mar 11 13:53:08 2022 +0100 ID3 loader: Disable tags stuff I don't understand the purpose, and it gets in the way of changes to come. --- src/modules/loaders/loader_id3.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/modules/loaders/loader_id3.c b/src/modules/loaders/loader_id3.c index eda42b0..d214839 100644 --- a/src/modules/loaders/loader_id3.c +++ b/src/modules/loaders/loader_id3.c @@ -4,6 +4,7 @@ #include <limits.h> #include <id3tag.h> +#define USE_TAGS 0 typedef struct context { int id; @@ -212,6 +213,7 @@ str2uint(const char *str, unsigned int old) return ((errno || index > UINT_MAX) ? old : index); } +#if USE_TAGS static void destructor_data(ImlibImage * im, void *data) { @@ -223,6 +225,7 @@ destructor_context(ImlibImage * im, void *data) { context_delref((context *) data); } +#endif typedef struct lopt { context *ctx; @@ -379,6 +382,7 @@ get_loader(lopt * opt, ImlibLoader ** loader) return 1; } +#if USE_TAGS static const char *const id3_pic_types[] = { /* $00 */ "Other", /* $01 */ "32x32 pixels file icon", @@ -479,6 +483,7 @@ write_tags(ImlibImage * im, lopt * opt) __imlib_AttachTag(im, "next", 0, buf, destructor_data); } } +#endif int load2(ImlibImage * im, int load_data) @@ -554,14 +559,18 @@ load2(ImlibImage * im, int load_data) rc = __imlib_LoadEmbedded(loader, im, file, load_data); +#if USE_TAGS if (!im->loader) __imlib_AttachTag(im, "id3-link-url", 0, url, destructor_data); else +#endif free(url); } +#if USE_TAGS if (!im->loader) write_tags(im, &opt); +#endif #ifdef DEBUG if (!im->loader) --
