plugin: Add function to check for UI handlers

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-07-21 11:45:47 +02:00
parent f744b1e9cb
commit 666fe5fdfb
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -54,6 +54,12 @@ std::shared_ptr<obsffmpeg::ui::handler> obsffmpeg::find_codec_handler(std::strin
return found->second;
}
bool obsffmpeg::has_codec_handler(std::string codec)
{
auto found = codec_to_handler_map.find(codec);
return (found != codec_to_handler_map.end());
}
static std::map<AVCodec*, std::shared_ptr<encoder::generic_factory>> generic_factories;
MODULE_EXPORT bool obs_module_load(void)
+2
View File
@@ -31,6 +31,8 @@ namespace obsffmpeg {
std::shared_ptr<obsffmpeg::ui::handler> find_codec_handler(std::string codec);
bool has_codec_handler(std::string codec);
} // namespace obsffmpeg
MODULE_EXPORT bool obs_module_load(void);