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

Function ffmpeg_uri_decode

src/decoder/plugins/FfmpegDecoderPlugin.cxx:662–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662static void
663ffmpeg_uri_decode(DecoderClient &client, const char *uri)
664{
665 auto format_context =
666 FfmpegOpenInput(nullptr, uri, nullptr);
667
668 const auto *input_format = format_context->iformat;
669 if (input_format->long_name == nullptr)
670 FmtDebug(ffmpeg_domain, "detected input format {:?}",
671 input_format->name);
672 else
673 FmtDebug(ffmpeg_domain, "detected input format {:?} ({:?})",
674 input_format->name, input_format->long_name);
675
676 FfmpegDecode(client, nullptr, *format_context);
677}
678
679static std::set<std::string, std::less<>>
680ffmpeg_protocols() noexcept

Callers

nothing calls this directly

Calls 2

FfmpegOpenInputFunction · 0.85
FfmpegDecodeFunction · 0.85

Tested by

no test coverage detected