Commit b8e06d41 authored by Max Kellermann's avatar Max Kellermann

oggvorbis: use bool

Make ogg_parseCommentAddToTag() return bool instead of unsigned int.
parent ca42f014
...@@ -139,8 +139,8 @@ ogg_getReplayGainInfo(char **comments) ...@@ -139,8 +139,8 @@ ogg_getReplayGainInfo(char **comments)
static const char *VORBIS_COMMENT_TRACK_KEY = "tracknumber"; static const char *VORBIS_COMMENT_TRACK_KEY = "tracknumber";
static const char *VORBIS_COMMENT_DISC_KEY = "discnumber"; static const char *VORBIS_COMMENT_DISC_KEY = "discnumber";
static unsigned int ogg_parseCommentAddToTag(char *comment, static bool
unsigned int itemType, ogg_parseCommentAddToTag(char *comment, unsigned int itemType,
struct tag ** tag) struct tag ** tag)
{ {
const char *needle; const char *needle;
...@@ -163,10 +163,10 @@ static unsigned int ogg_parseCommentAddToTag(char *comment, ...@@ -163,10 +163,10 @@ static unsigned int ogg_parseCommentAddToTag(char *comment,
tag_add_item(*tag, itemType, comment + len + 1); tag_add_item(*tag, itemType, comment + len + 1);
return 1; return true;
} }
return 0; return false;
} }
static struct tag *oggCommentsParse(char **comments) static struct tag *oggCommentsParse(char **comments)
......
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