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
9b9144f2
Commit
9b9144f2
authored
Nov 24, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Control: use C++11 initializers
parent
b677e891
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
DecoderControl.cxx
src/decoder/DecoderControl.cxx
+1
-6
DecoderControl.hxx
src/decoder/DecoderControl.hxx
+6
-6
No files found.
src/decoder/DecoderControl.cxx
View file @
9b9144f2
...
...
@@ -28,12 +28,7 @@
#include <assert.h>
DecoderControl
::
DecoderControl
(
Mutex
&
_mutex
,
Cond
&
_client_cond
)
:
mutex
(
_mutex
),
client_cond
(
_client_cond
),
state
(
DecoderState
::
STOP
),
command
(
DecoderCommand
::
NONE
),
client_is_waiting
(
false
),
song
(
nullptr
),
replay_gain_db
(
0
),
replay_gain_prev_db
(
0
)
{}
:
mutex
(
_mutex
),
client_cond
(
_client_cond
)
{}
DecoderControl
::~
DecoderControl
()
{
...
...
src/decoder/DecoderControl.hxx
View file @
9b9144f2
...
...
@@ -89,8 +89,8 @@ struct DecoderControl {
*/
Cond
&
client_cond
;
DecoderState
state
;
DecoderCommand
command
;
DecoderState
state
=
DecoderState
::
STOP
;
DecoderCommand
command
=
DecoderCommand
::
NONE
;
/**
* The error that occurred in the decoder thread. This
...
...
@@ -107,7 +107,7 @@ struct DecoderControl {
* false, the DecoderThread may omit invoking Cond::signal(),
* reducing the number of system calls.
*/
bool
client_is_waiting
;
bool
client_is_waiting
=
false
;
bool
seek_error
;
bool
seekable
;
...
...
@@ -127,7 +127,7 @@ struct DecoderControl {
* This is a duplicate, and must be freed when this attribute
* is cleared.
*/
DetachedSong
*
song
;
DetachedSong
*
song
=
nullptr
;
/**
* The initial seek position, e.g. to the start of a sub-track
...
...
@@ -156,8 +156,8 @@ struct DecoderControl {
*/
MusicPipe
*
pipe
;
float
replay_gain_db
;
float
replay_gain_prev_db
;
float
replay_gain_db
=
0
;
float
replay_gain_prev_db
=
0
;
MixRampInfo
mix_ramp
,
previous_mix_ramp
;
...
...
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