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
5e6c164b
Commit
5e6c164b
authored
Sep 08, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Internal: use C++11 initializers
parent
5d9a8891
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
DecoderInternal.hxx
src/decoder/DecoderInternal.hxx
+9
-16
No files found.
src/decoder/DecoderInternal.hxx
View file @
5e6c164b
...
...
@@ -35,12 +35,12 @@ struct Decoder {
* For converting input data to the configured audio format.
* nullptr means no conversion necessary.
*/
PcmConvert
*
convert
;
PcmConvert
*
convert
=
nullptr
;
/**
* The time stamp of the next data chunk, in seconds.
*/
double
timestamp
;
double
timestamp
=
0
;
/**
* Is the initial seek (to the start position of the sub-song)
...
...
@@ -54,14 +54,14 @@ struct Decoder {
* decoder_get_virtual_command(), when the virtual SEEK
* command is generated for the first time.
*/
bool
initial_seek_running
;
bool
initial_seek_running
=
false
;
/**
* This flag is set by decoder_seek_time(), and checked by
* decoder_command_finished(). It is used to clean up after
* seeking.
*/
bool
seeking
;
bool
seeking
=
false
;
/**
* The tag from the song object. This is only used for local
...
...
@@ -71,13 +71,13 @@ struct Decoder {
Tag
*
song_tag
;
/** the last tag received from the stream */
Tag
*
stream_tag
;
Tag
*
stream_tag
=
nullptr
;
/** the last tag received from the decoder plugin */
Tag
*
decoder_tag
;
Tag
*
decoder_tag
=
nullptr
;
/** the chunk currently being written to */
MusicChunk
*
chunk
;
MusicChunk
*
chunk
=
nullptr
;
ReplayGainInfo
replay_gain_info
;
...
...
@@ -85,7 +85,7 @@ struct Decoder {
* A positive serial number for checking if replay gain info
* has changed since the last check.
*/
unsigned
replay_gain_serial
;
unsigned
replay_gain_serial
=
0
;
/**
* An error has occurred (in DecoderAPI.cxx), and the plugin
...
...
@@ -95,15 +95,8 @@ struct Decoder {
Decoder
(
DecoderControl
&
_dc
,
bool
_initial_seek_pending
,
Tag
*
_tag
)
:
dc
(
_dc
),
convert
(
nullptr
),
timestamp
(
0
),
initial_seek_pending
(
_initial_seek_pending
),
initial_seek_running
(
false
),
seeking
(
false
),
song_tag
(
_tag
),
stream_tag
(
nullptr
),
decoder_tag
(
nullptr
),
chunk
(
nullptr
),
replay_gain_serial
(
0
)
{
}
song_tag
(
_tag
)
{}
~
Decoder
();
...
...
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