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
e7311ac2
Commit
e7311ac2
authored
May 09, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/opus: use C++11 initializers
parent
8d9ecc0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
OpusDecoderPlugin.cxx
src/decoder/plugins/OpusDecoderPlugin.cxx
+5
-9
No files found.
src/decoder/plugins/OpusDecoderPlugin.cxx
View file @
e7311ac2
...
@@ -76,8 +76,8 @@ class MPDOpusDecoder {
...
@@ -76,8 +76,8 @@ class MPDOpusDecoder {
ogg_stream_state
os
;
ogg_stream_state
os
;
OpusDecoder
*
opus_decoder
;
OpusDecoder
*
opus_decoder
=
nullptr
;
opus_int16
*
output_buffer
;
opus_int16
*
output_buffer
=
nullptr
;
/**
/**
* If non-zero, then a previous Opus stream has been found
* If non-zero, then a previous Opus stream has been found
...
@@ -85,9 +85,9 @@ class MPDOpusDecoder {
...
@@ -85,9 +85,9 @@ class MPDOpusDecoder {
* nullptr, then its end-of-stream packet has been found
* nullptr, then its end-of-stream packet has been found
* already.
* already.
*/
*/
unsigned
previous_channels
;
unsigned
previous_channels
=
0
;
bool
os_initialized
;
bool
os_initialized
=
false
;
int
opus_serialno
;
int
opus_serialno
;
...
@@ -98,11 +98,7 @@ class MPDOpusDecoder {
...
@@ -98,11 +98,7 @@ class MPDOpusDecoder {
public
:
public
:
MPDOpusDecoder
(
Decoder
&
_decoder
,
MPDOpusDecoder
(
Decoder
&
_decoder
,
InputStream
&
_input_stream
)
InputStream
&
_input_stream
)
:
decoder
(
_decoder
),
input_stream
(
_input_stream
),
:
decoder
(
_decoder
),
input_stream
(
_input_stream
)
{}
opus_decoder
(
nullptr
),
output_buffer
(
nullptr
),
previous_channels
(
0
),
os_initialized
(
false
)
{}
~
MPDOpusDecoder
();
~
MPDOpusDecoder
();
bool
ReadFirstPage
(
OggSyncState
&
oy
);
bool
ReadFirstPage
(
OggSyncState
&
oy
);
...
...
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