decoder/Opus: replace non-static data member initializers
Would require gcc 4.7, and MPD attempts to be compatible with gcc 4.6.
This commit is contained in:
@@ -70,12 +70,12 @@ class MPDOpusDecoder {
|
|||||||
|
|
||||||
ogg_stream_state os;
|
ogg_stream_state os;
|
||||||
|
|
||||||
OpusDecoder *opus_decoder = nullptr;
|
OpusDecoder *opus_decoder;
|
||||||
opus_int16 *output_buffer = nullptr;
|
opus_int16 *output_buffer;
|
||||||
unsigned output_size = 0;
|
unsigned output_size;
|
||||||
|
|
||||||
bool os_initialized = false;
|
bool os_initialized;
|
||||||
bool found_opus = false;
|
bool found_opus;
|
||||||
|
|
||||||
int opus_serialno;
|
int opus_serialno;
|
||||||
|
|
||||||
@@ -84,7 +84,10 @@ class MPDOpusDecoder {
|
|||||||
public:
|
public:
|
||||||
MPDOpusDecoder(struct decoder *_decoder,
|
MPDOpusDecoder(struct decoder *_decoder,
|
||||||
struct input_stream *_input_stream)
|
struct input_stream *_input_stream)
|
||||||
:decoder(_decoder), input_stream(_input_stream) {}
|
:decoder(_decoder), input_stream(_input_stream),
|
||||||
|
opus_decoder(nullptr),
|
||||||
|
output_buffer(nullptr), output_size(0),
|
||||||
|
os_initialized(false), found_opus(false) {}
|
||||||
~MPDOpusDecoder();
|
~MPDOpusDecoder();
|
||||||
|
|
||||||
bool ReadFirstPage(OggSyncState &oy);
|
bool ReadFirstPage(OggSyncState &oy);
|
||||||
|
Reference in New Issue
Block a user