decoder/plugin: add "suffixes" function
For decoder plugins like FFmpeg where the supported codecs cannot be determined at compile time.
This commit is contained in:
@@ -25,6 +25,10 @@ decoder_plugin_print(Response &r,
|
||||
for (p = plugin.suffixes; *p != nullptr; ++p)
|
||||
r.Fmt(FMT_STRING("suffix: {}\n"), *p);
|
||||
|
||||
if (plugin.suffixes_function != nullptr)
|
||||
for (const auto &i : plugin.suffixes_function())
|
||||
r.Fmt(FMT_STRING("suffix: {}\n"), i);
|
||||
|
||||
if (plugin.mime_types != nullptr)
|
||||
for (p = plugin.mime_types; *p != nullptr; ++p)
|
||||
r.Fmt(FMT_STRING("mime_type: {}\n"), *p);
|
||||
|
||||
Reference in New Issue
Block a user