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
57d89131
Commit
57d89131
authored
Apr 23, 2012
by
Jonathan Dieter
Committed by
Max Kellermann
Apr 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag_rva2: parse multiple ID3 "RVA2" tags
parent
7c6d1896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
tag_rva2.c
src/tag_rva2.c
+12
-2
No files found.
src/tag_rva2.c
View file @
57d89131
...
...
@@ -135,6 +135,16 @@ rva2_apply_frame(struct replay_gain_info *replay_gain_info,
bool
tag_rva2_parse
(
struct
id3_tag
*
tag
,
struct
replay_gain_info
*
replay_gain_info
)
{
struct
id3_frame
const
*
frame
=
id3_tag_findframe
(
tag
,
"RVA2"
,
0
);
return
frame
!=
NULL
&&
rva2_apply_frame
(
replay_gain_info
,
frame
);
bool
found
=
false
;
/* Loop through all RVA2 frames as some programs (e.g. mp3gain) store
track and album gain in separate tags */
const
struct
id3_frame
*
frame
;
for
(
unsigned
i
=
0
;
(
frame
=
id3_tag_findframe
(
tag
,
"RVA2"
,
i
))
!=
NULL
;
++
i
)
if
(
rva2_apply_frame
(
replay_gain_info
,
frame
))
found
=
true
;
return
found
;
}
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