Commit b06b4f93 authored by Max Kellermann's avatar Max Kellermann

tag_id3: converted tag_is_id3v1() to an inline function

Prefer C over CPP.
parent 86c6bb61
......@@ -34,7 +34,6 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "id3"
# define tag_is_id3v1(tag) (id3_tag_options(tag, 0, 0) & ID3_TAG_OPTION_ID3V1)
# ifndef ID3_FRAME_COMPOSER
# define ID3_FRAME_COMPOSER "TCOM"
# endif
......@@ -54,6 +53,12 @@
#define ID3_FRAME_ALBUM_ARTIST "TPE2"
#endif
static inline bool
tag_is_id3v1(struct id3_tag *tag)
{
return (id3_tag_options(tag, 0, 0) & ID3_TAG_OPTION_ID3V1) != 0;
}
static id3_utf8_t *
tag_id3_getstring(const struct id3_frame *frame, unsigned i)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment