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
69b03375
Commit
69b03375
authored
Jan 14, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oggvorbis: moved code to vorbis_copy_comment()
parent
25cf3333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
oggvorbis_plugin.c
src/decoder/oggvorbis_plugin.c
+21
-9
No files found.
src/decoder/oggvorbis_plugin.c
View file @
69b03375
...
...
@@ -141,10 +141,29 @@ vorbis_comments_to_replay_gain(char **comments)
static
const
char
*
VORBIS_COMMENT_TRACK_KEY
=
"tracknumber"
;
static
const
char
*
VORBIS_COMMENT_DISC_KEY
=
"discnumber"
;
/**
* Check if the comment's name equals the passed name, and if so, copy
* the comment value into the tag.
*/
static
bool
vorbis_copy_comment
(
struct
tag
*
tag
,
const
char
*
comment
,
const
char
*
name
,
enum
tag_type
tag_type
)
{
const
char
*
value
;
value
=
vorbis_comment_value
(
comment
,
name
);
if
(
value
!=
NULL
)
{
tag_add_item
(
tag
,
tag_type
,
value
);
return
true
;
}
return
false
;
}
static
bool
vorbis_parse_comment
(
struct
tag
*
tag
,
char
*
comment
,
enum
tag_type
tag_type
)
{
const
char
*
needle
,
*
value
;
const
char
*
needle
;
assert
(
tag
!=
NULL
);
...
...
@@ -159,14 +178,7 @@ vorbis_parse_comment(struct tag *tag, char *comment, enum tag_type tag_type)
needle
=
mpdTagItemKeys
[
tag_type
];
}
value
=
vorbis_comment_value
(
comment
,
needle
);
if
(
value
!=
NULL
)
{
tag_add_item
(
tag
,
tag_type
,
value
);
return
true
;
}
return
false
;
return
vorbis_copy_comment
(
tag
,
comment
,
needle
,
tag_type
);
}
static
struct
tag
*
...
...
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