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

Function decoder_run_stream_plugin

src/decoder/Thread.cxx:210–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static DecodeResult
211decoder_run_stream_plugin(DecoderBridge &bridge, InputStream &is,
212 std::unique_lock<Mutex> &lock,
213 std::string_view suffix,
214 const DecoderPlugin &plugin)
215{
216 if (!decoder_check_plugin_mime(plugin, is) &&
217 !decoder_check_plugin_suffix(plugin, suffix))
218 return DecodeResult::NO_PLUGIN;
219
220 if (plugin.stream_decode == nullptr)
221 return DecodeResult::NO_STREAM_PLUGIN;
222
223 bridge.Reset();
224
225 return decoder_stream_decode(plugin, bridge, is, lock);
226}
227
228static DecodeResult
229decoder_run_stream_locked(DecoderBridge &bridge, InputStream &is,

Callers 1

Calls 4

decoder_stream_decodeFunction · 0.85
ResetMethod · 0.45

Tested by

no test coverage detected