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
196de8c7
Commit
196de8c7
authored
Feb 23, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/thread: load APE replay gain from remote files
parent
222b7775
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
NEWS
NEWS
+1
-0
DecoderThread.cxx
src/decoder/DecoderThread.cxx
+14
-0
No files found.
NEWS
View file @
196de8c7
...
...
@@ -13,6 +13,7 @@ ver 0.20 (not yet released)
(most importantly some mp3s)
- id3: remove the "id3v1_encoding" setting; by definition, all ID3v1 tags
are ISO-Latin-1
- ape: support APE replay gain on remote files
* decoder
- improved error logging
- report I/O errors to clients
...
...
src/decoder/DecoderThread.cxx
View file @
196de8c7
...
...
@@ -242,6 +242,18 @@ decoder_run_stream_fallback(Decoder &decoder, InputStream &is)
}
/**
* Attempt to load replay gain data, and pass it to
* decoder_replay_gain().
*/
static
void
LoadReplayGain
(
Decoder
&
decoder
,
InputStream
&
is
)
{
ReplayGainInfo
info
;
if
(
replay_gain_ape_read
(
is
,
info
))
decoder_replay_gain
(
decoder
,
&
info
);
}
/**
* Try decoding a stream.
*
* DecoderControl::mutex is not locked by caller.
...
...
@@ -256,6 +268,8 @@ decoder_run_stream(Decoder &decoder, const char *uri)
if
(
input_stream
==
nullptr
)
return
false
;
LoadReplayGain
(
decoder
,
*
input_stream
);
const
ScopeLock
protect
(
dc
.
mutex
);
bool
tried
=
false
;
...
...
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