Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
923f18ef
Commit
923f18ef
authored
Dec 03, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IcyMetaDataParser: use class TagBuilder
parent
7e8d254b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
IcyMetaDataParser.cxx
src/IcyMetaDataParser.cxx
+7
-5
No files found.
src/IcyMetaDataParser.cxx
View file @
923f18ef
...
...
@@ -20,6 +20,7 @@
#include "config.h"
#include "IcyMetaDataParser.hxx"
#include "tag/Tag.hxx"
#include "tag/TagBuilder.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
...
...
@@ -66,7 +67,7 @@ IcyMetaDataParser::Data(size_t length)
}
static
void
icy_add_item
(
Tag
&
tag
,
TagType
type
,
const
char
*
value
)
icy_add_item
(
Tag
Builder
&
tag
,
TagType
type
,
const
char
*
value
)
{
size_t
length
=
strlen
(
value
);
...
...
@@ -81,7 +82,7 @@ icy_add_item(Tag &tag, TagType type, const char *value)
}
static
void
icy_parse_tag_item
(
Tag
&
tag
,
const
char
*
item
)
icy_parse_tag_item
(
Tag
Builder
&
tag
,
const
char
*
item
)
{
gchar
**
p
=
g_strsplit
(
item
,
"="
,
0
);
...
...
@@ -99,15 +100,16 @@ icy_parse_tag_item(Tag &tag, const char *item)
static
Tag
*
icy_parse_tag
(
const
char
*
p
)
{
Tag
*
tag
=
new
Tag
();
TagBuilder
tag
;
gchar
**
items
=
g_strsplit
(
p
,
";"
,
0
);
for
(
unsigned
i
=
0
;
items
[
i
]
!=
nullptr
;
++
i
)
icy_parse_tag_item
(
*
tag
,
items
[
i
]);
icy_parse_tag_item
(
tag
,
items
[
i
]);
g_strfreev
(
items
);
return
tag
;
return
tag
.
Commit
()
;
}
size_t
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment