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
85b6a526
Commit
85b6a526
authored
Jul 11, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/flac: use C++11 initializers
parent
0246082b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
FlacCommon.cxx
src/decoder/plugins/FlacCommon.cxx
+0
-8
FlacCommon.hxx
src/decoder/plugins/FlacCommon.hxx
+6
-4
No files found.
src/decoder/plugins/FlacCommon.cxx
View file @
85b6a526
...
...
@@ -29,14 +29,6 @@
#include "util/Error.hxx"
#include "Log.hxx"
FlacDecoder
::
FlacDecoder
(
Decoder
&
_decoder
,
InputStream
&
_input_stream
)
:
FlacInput
(
_input_stream
,
&
_decoder
),
initialized
(
false
),
unsupported
(
false
),
position
(
0
)
{
}
static
SampleFormat
flac_sample_format
(
unsigned
bits_per_sample
)
{
...
...
src/decoder/plugins/FlacCommon.hxx
View file @
85b6a526
...
...
@@ -41,12 +41,12 @@ struct FlacDecoder : public FlacInput {
/**
* Has decoder_initialized() been called yet?
*/
bool
initialized
;
bool
initialized
=
false
;
/**
* Does the FLAC file contain an unsupported audio format?
*/
bool
unsupported
;
bool
unsupported
=
false
;
/**
* The validated audio format of the FLAC file. This
...
...
@@ -58,11 +58,13 @@ struct FlacDecoder : public FlacInput {
* End of last frame's position within the stream. This is
* used for bit rate calculations.
*/
FLAC__uint64
position
;
FLAC__uint64
position
=
0
;
Tag
tag
;
FlacDecoder
(
Decoder
&
decoder
,
InputStream
&
input_stream
);
FlacDecoder
(
Decoder
&
_decoder
,
InputStream
&
_input_stream
)
:
FlacInput
(
_input_stream
,
&
_decoder
)
{}
/**
* Wrapper for decoder_initialized().
...
...
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