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
d82547ac
Commit
d82547ac
authored
Sep 24, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/flac: pass VorbisComment to flac_parse_replay_gain()
parent
441f9cc2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
FlacCommon.cxx
src/decoder/plugins/FlacCommon.cxx
+1
-1
FlacMetadata.cxx
src/decoder/plugins/FlacMetadata.cxx
+1
-4
FlacMetadata.hxx
src/decoder/plugins/FlacMetadata.hxx
+1
-1
No files found.
src/decoder/plugins/FlacCommon.cxx
View file @
d82547ac
...
...
@@ -98,7 +98,7 @@ void flac_metadata_common_cb(const FLAC__StreamMetadata * block,
break
;
case
FLAC__METADATA_TYPE_VORBIS_COMMENT
:
if
(
flac_parse_replay_gain
(
rgi
,
block
))
if
(
flac_parse_replay_gain
(
rgi
,
block
->
data
.
vorbis_comment
))
decoder_replay_gain
(
data
->
decoder
,
&
rgi
);
decoder_mixramp
(
data
->
decoder
,
flac_parse_mixramp
(
block
));
...
...
src/decoder/plugins/FlacMetadata.cxx
View file @
d82547ac
...
...
@@ -55,11 +55,8 @@ vorbis_comment_value(const FLAC__StreamMetadata *block,
bool
flac_parse_replay_gain
(
ReplayGainInfo
&
rgi
,
const
FLAC__StreamMetadata
*
block
)
const
FLAC__StreamMetadata
_VorbisComment
&
vc
)
{
const
FLAC__StreamMetadata_VorbisComment
&
vc
=
block
->
data
.
vorbis_comment
;
rgi
.
Clear
();
bool
found
=
false
;
...
...
src/decoder/plugins/FlacMetadata.hxx
View file @
d82547ac
...
...
@@ -116,7 +116,7 @@ struct ReplayGainInfo;
bool
flac_parse_replay_gain
(
ReplayGainInfo
&
rgi
,
const
FLAC__StreamMetadata
*
block
);
const
FLAC__StreamMetadata
_VorbisComment
&
vc
);
MixRampInfo
flac_parse_mixramp
(
const
FLAC__StreamMetadata
*
block
);
...
...
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