MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / FlacInitAndDecode

Function FlacInitAndDecode

src/decoder/plugins/FlacDecoderPlugin.cxx:289–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289static bool
290FlacInitAndDecode(FlacDecoder &data, FLAC__StreamDecoder *sd, bool is_ogg)
291{
292 auto init_status = stream_init(sd, &data, is_ogg);
293 if (init_status != FLAC__STREAM_DECODER_INIT_STATUS_OK) {
294 LogWarning(flac_domain,
295 FLAC__StreamDecoderInitStatusString[init_status]);
296 return false;
297 }
298
299 bool result = flac_decoder_initialize(&data, sd);
300 if (result)
301 flac_decoder_loop(&data, sd);
302
303 FLAC__stream_decoder_finish(sd);
304 return result;
305}
306
307static void
308flac_decode_internal(DecoderClient &client,

Callers 1

flac_decode_internalFunction · 0.85

Calls 3

stream_initFunction · 0.85
flac_decoder_initializeFunction · 0.85
flac_decoder_loopFunction · 0.85

Tested by

no test coverage detected