mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
obs/encoder-factory: Fix incorrect proxy registration
This commit is contained in:
parent
ee0a69bbf0
commit
411b716402
1 changed files with 2 additions and 2 deletions
|
@ -82,8 +82,8 @@ namespace obs {
|
|||
// Create proxy.
|
||||
std::shared_ptr<obs_encoder_info> proxy = std::make_shared<obs_encoder_info>();
|
||||
memcpy(proxy.get(), &_info, sizeof(obs_encoder_info));
|
||||
_info.id = iter.first->c_str();
|
||||
_info.caps |= OBS_SOURCE_DEPRECATED;
|
||||
proxy->id = iter.first->c_str();
|
||||
proxy->caps |= OBS_ENCODER_CAP_DEPRECATED;
|
||||
obs_register_encoder(proxy.get());
|
||||
|
||||
_proxies.emplace(name, proxy);
|
||||
|
|
Loading…
Reference in a new issue