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

Function decoder_check_plugin_mime

src/decoder/Thread.cxx:192–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192[[gnu::pure]]
193static bool
194decoder_check_plugin_mime(const DecoderPlugin &plugin,
195 const InputStream &is) noexcept
196{
197 const char *mime_type = is.GetMimeType();
198 return mime_type != nullptr &&
199 plugin.SupportsMimeType(GetMimeTypeBase(mime_type));
200}
201
202[[gnu::pure]]
203static bool

Callers 1

Calls 3

GetMimeTypeBaseFunction · 0.85
GetMimeTypeMethod · 0.45
SupportsMimeTypeMethod · 0.45

Tested by

no test coverage detected