added audio_format parameter to decoder_initialized()
dc->audioFormat is set once by the decoder plugins before invoking decoder_initialized(); hide dc->audioFormat and let the decoder pass an AudioFormat pointer to decoder_initialized().
This commit is contained in:
@@ -24,10 +24,17 @@
|
||||
#include "playerData.h"
|
||||
#include "gcc.h"
|
||||
|
||||
void decoder_initialized(mpd_unused struct decoder * decoder)
|
||||
void decoder_initialized(mpd_unused struct decoder * decoder,
|
||||
const AudioFormat * audio_format)
|
||||
{
|
||||
assert(dc.state == DECODE_STATE_START);
|
||||
|
||||
if (audio_format != NULL) {
|
||||
dc.audioFormat = *audio_format;
|
||||
getOutputAudioFormat(audio_format,
|
||||
&(ob.audioFormat));
|
||||
}
|
||||
|
||||
dc.state = DECODE_STATE_DECODE;
|
||||
notify_signal(&pc.notify);
|
||||
}
|
||||
|
Reference in New Issue
Block a user