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

Function MakeDecoderError

src/decoder/Thread.cxx:530–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530[[gnu::pure]]
531static std::runtime_error
532MakeDecoderError(const DetachedSong &song, const char *msg) noexcept
533{
534 const char *error_uri = song.GetURI();
535 const std::string allocated = uri_remove_auth(error_uri);
536 if (!allocated.empty())
537 error_uri = allocated.c_str();
538
539 return FmtRuntimeError("Failed to decode {:?}: {}", error_uri, msg);
540}
541
542/**
543 * Decode a song addressed by a #DetachedSong.

Callers 1

decoder_run_songFunction · 0.85

Calls 3

uri_remove_authFunction · 0.85
emptyMethod · 0.80
GetURIMethod · 0.45

Tested by

no test coverage detected